Re: IDE and setting classpath for command line



Bill wrote:
I am new and using JCreator to do exercises from a text, but I'd also
like to use java c command prompt, etc. to compile and run, to

Well, the command is "javac" with no space. So there's one error right there.

Copy the commands and response from your screen directly (use copy-and paste) so we can see exactly what is going on. Also, list all your directories and files that you are trying to compile (should only be one or two for a simple example), so we can make certain that you're typing in the correct paths. Cat (type) the files to the screen too so we can check your packages. Copy all this here with "cut and paste" don't re-type it, so we can see exactly what's going on.


understand command prompt. Is there a conflict between configuring an
IDE and command prompt? I can't get java c command to compile,
although the -version prompt shows the version. I also have several
jres and jdks in Program files/ Java, is that fouling things?
jdk1.6.0_12 is configured for the IDE and also shows in the -version
prompt. Java Web Start will not run on jars I have created., although
downloaded JWS do. Do I need to configure a classpath fot using the
command line? I am 3 mos into this Thanks again


Yes, the classpath needs to be specified correctly. Print that to the string (echo $CLASSPATH or whatever) and copy and paste it here, but if "javac" runs and prints a version string, that part should be ok. There's no conflicts created by (most) IDEs. Concentrate on your files and the classpath they need, not the system files. Start without packages if you have to.


.



Relevant Pages

  • Re: compile whole project help
    ... >> I am compiling with command line javac. ... >> command to compile all the java file together and put ... change to the following directory structure ...
    (comp.lang.java.programmer)
  • Some pretty simple questions
    ... I'm completely new to Java but I have done some console programming using ... command window and enter the command to compile my program I always get ... from my books will work with it. ...
    (microsoft.public.dotnet.vjsharp)
  • Re: need newbie java help
    ... First you have to compile it using javac i.e. ... Then execute it with java command ...
    (comp.sys.mac.system)
  • Compiling and Running (First Newbie Question)
    ... I have been able to package, compile, and run Java programs. ... instructor tells us where to put the DOS command line commands, ...
    (comp.lang.java.help)
  • IDE and setting classpath for command line
    ... like to use java c command prompt, etc. to compile and run, to ... IDE and command prompt? ... I can't get java c command to compile, ...
    (comp.lang.java.help)