aspose file tools
The moose likes Java in General and the fly likes javac Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "javac" Watch "javac" New topic
Author

javac

sara rod
Greenhorn

Joined: Dec 07, 2009
Posts: 23
Hi,

I am trying to run javac command and have to problems:
first, the -classpath - doesnt work for me, I am trying to put .class folders, I tried to put the root directory, and all the sub directories - but it dont work.. I still get:package ... does not exist.

second, I have to compile a whole folder - so i use the myFolder \*.java - as the path to compile, it works fine, but when I add " - for spaces a get: invalid flag for the folder path.

some one can help?
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 196
are you using window ??
If windows and if you are adding your class folder to class path in emv varible doesnt work either you need to put jar file or class files not a class folder .
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: javac
 
Similar Threads
classpath problem
Shortcut for Project Execution
Learning basics again, having a few command line problems
Java Classpath on Mac (Leopard)
correct code to my Java console(j2sdk1.4.2_03) to establish a permanent path to bin