[java] JAVA Imposible?
Hello!
Im a C++ programmer trying out java!
I have downloaded the sdk 1.4 from sun, installed it, and then nothing!
When i try to run the examples, all i get is: (in the browser)
load: class DrawTest not found , but the link in the html file is corect, and i don''t understand this! So i need to tell java where the class file is? I have done the PATH setup, but not the CLASSPATH setup, because i have no classpath set! Anyone have a hint or something? I need to test my applets!
Thank you!
-Anders-Oredsson-Norway-
-Anders-Oredsson-Norway-
First off, I''d honestly recommend sticking to jdk 1.3.1 for the time being, as the 1.4 beta is currently broken in quite a few ways.
Second, you should start with some kind of HelloWorld command line application, rather than trying to work with an Applet first. There are a lot fewer ways to break a command line application.
Second, you should start with some kind of HelloWorld command line application, rather than trying to work with an Applet first. There are a lot fewer ways to break a command line application.
As I consider what this guy has posted, I remeber my experience with the installation of Java2 SDK. You have one of two problems most likely.
1. You are using Netscape and didn''t copy the npjava**.dll files into the PLUGINS directory.
2. You are using Internet Explorer. I still haven''t gotten the JRE plugins to work for it.
1. You are using Netscape and didn''t copy the npjava**.dll files into the PLUGINS directory.
2. You are using Internet Explorer. I still haven''t gotten the JRE plugins to work for it.
If you missed a great moment in history don't worry, it'll repeat itself.
No need for setting a CLASSPATH environment variable these days. If you need to, instead use the -cp option on the command line.
try something like this:-
PATH = C:\JDK1.3\BIN
SET CLASSPATH = C:\JDK1.3\BIN
PATH = C:\JDK1.3\BIN
SET CLASSPATH = C:\JDK1.3\BIN
oh yeah..forgot..u need to place those 2 commands in the autoexec.bat file and restart yur comp.
Or for NT/2000 modify your personal or global envoronment variables. I''ve only needed to do that for command line options though.
August 24, 2001 10:06 AM
You may want to compile the examples before you try to run them, if they''re not already. Try typing "javac filename.java" from the command-line. This will produce one or more ".class" files (one for each class that gets compiled). Now you should be able to run the application (or applet, whatever the case may be).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement