-
1
- #1
Currently this would be my second semester of java, so I have most of the basics down. We just learned about organizing class in to logical packages. I understand this. but I can't seem to get it to work with out specifying the <br>
-classpath switch. What I want is to set the environment variable so that I don't have to type it every time (I am lazy ). I am running windows 98SE, I have my path variable set properly, in a batch file that executes every time I start a command prompt session. that batch file looks like this:<br>
<br>
set PATH = %PATH%;c:\jdk1.2.2\bin<br>
set CLASSPATH = c:\java\cosc1047\lib REM where the package directory would be stored<br>
<br>
<br>
with this above setting, I can't get javac to find my <br>
packages. But it works if I go: javac -classpath c:\java\cosc1047\lib MyClass.java<br>
<br>
I have search java.sun.com, the internet, usenet and various other sources, and I tried every recomendation but to no avail.<br>
<br>
I am at a loss and this is really starting to bother me. Would putting the package into a jar file help?<br>
<br>
<br>
fenris
-classpath switch. What I want is to set the environment variable so that I don't have to type it every time (I am lazy ). I am running windows 98SE, I have my path variable set properly, in a batch file that executes every time I start a command prompt session. that batch file looks like this:<br>
<br>
set PATH = %PATH%;c:\jdk1.2.2\bin<br>
set CLASSPATH = c:\java\cosc1047\lib REM where the package directory would be stored<br>
<br>
<br>
with this above setting, I can't get javac to find my <br>
packages. But it works if I go: javac -classpath c:\java\cosc1047\lib MyClass.java<br>
<br>
I have search java.sun.com, the internet, usenet and various other sources, and I tried every recomendation but to no avail.<br>
<br>
I am at a loss and this is really starting to bother me. Would putting the package into a jar file help?<br>
<br>
<br>
fenris