Results 1 to 2 of 2
- 11-18-2012, 11:07 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 1
- Rep Power
- 0
Creating and Adding packages to ClassPath Enviroment Variables
I'm trying to create my own package to store classes in but have not been able to add the root directory in the enviroment variable settings properly. As a result I receive an (Error could find or load main class) in the command prompt. I know it's something I'm doing or missing in the env variables to settings. Any advice on how to properly add root directories to classpaths would be helpful.
- 11-19-2012, 10:58 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Creating and Adding packages to ClassPath Enviroment Variables
Do not use the environment variable for the system.
Define the classpath locally, either with a local CLASSPATH variable in an execution script, or by using the -cp flag.
You are probably missing the '.' in your classpath...Please do not ask for code as refusal often offends.
Similar Threads
-
NoClassDefFoundError: packages and the classpath
By anon406239061 in forum New To JavaReplies: 3Last Post: 02-05-2012, 10:53 PM -
Xuggle and enviroment variables
By javment in forum Advanced JavaReplies: 3Last Post: 11-03-2010, 07:20 PM -
Adding jar to classpath.
By dudejonne in forum New To JavaReplies: 11Last Post: 11-04-2009, 04:58 PM -
setting path and classpath variables from batch file -
By manojsingh.manoj@gmail.co in forum Advanced JavaReplies: 1Last Post: 09-15-2009, 11:50 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks