Results 1 to 3 of 3
- 04-01-2010, 10:35 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 1
- Rep Power
- 0
Starting Java prog from a different folder
Hi,
I have a Java class, Lattice.class in the folder:
Java Code:c:\ASR\bld\edu\cmu\sphinx\demo\lattice
The class is in the package:
Java Code:edu.cmu.sphinx.demo.lattice
I can run this from the
Java Code:c:\ASR\bld\
folder by typing:
Java Code:java edu.cmu.sphinx.demo.lattice.Lattice
If I want to run it from the
Java Code:c:\ASR\
folder I type:
Java Code:java -classpath ./bld -mx256m edu.cmu.sphinx.demo.lattice.Lattice
Is there any other way to run it from the ASR folder other than typing the classpath parameter and other than setting classpath in the computer settings?
Many thanks.
- 04-02-2010, 04:40 AM #2
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
you can run it right from your JDK/JRE bin folder :)
or add the folder into your IDE project src folder
- 04-02-2010, 09:39 AM #3
Member
- Join Date
- Apr 2010
- Posts
- 10
- Rep Power
- 0
Similar Threads
-
IE7 crashes on starting java web application.
By gosia.gabriel in forum Advanced JavaReplies: 1Last Post: 01-19-2009, 02:29 PM -
java annotations - small prog
By sebo in forum New To JavaReplies: 5Last Post: 10-24-2008, 05:48 AM -
want menu driven prog. who to take user i/p in the middle of the prog.
By Shyam Singh in forum New To JavaReplies: 1Last Post: 07-13-2008, 03:16 PM -
need a prog on java 2d applet
By bachelorswalk in forum Java AppletsReplies: 0Last Post: 12-25-2007, 05:26 PM -
Help, starting with java
By mathias in forum New To JavaReplies: 2Last Post: 08-15-2007, 07:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks