Results 1 to 2 of 2
  1. #1
    whiskeytango is offline Member
    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Default 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.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,820
    Rep Power
    19

    Default 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.

    ** This space for rent **

Similar Threads

  1. NoClassDefFoundError: packages and the classpath
    By anon406239061 in forum New To Java
    Replies: 3
    Last Post: 02-05-2012, 10:53 PM
  2. Xuggle and enviroment variables
    By javment in forum Advanced Java
    Replies: 3
    Last Post: 11-03-2010, 07:20 PM
  3. Adding jar to classpath.
    By dudejonne in forum New To Java
    Replies: 11
    Last Post: 11-04-2009, 04:58 PM
  4. setting path and classpath variables from batch file -
    By manojsingh.manoj@gmail.co in forum Advanced Java
    Replies: 1
    Last Post: 09-15-2009, 11:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •