reading env. variables.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: reading env. variables.

  1. #1
    dotolee Guest

    reading env. variables.


    Hi. I'm trying to use the getProperty() method to read an env. variable called
    "egix". I set it up using control panel in win 2000.
    Some of the articles I read said that I have to run
    java -Degix="<%egix%>" MyClass

    Everytime I try to do this, I get an error that says:
    Exception in thread "main" java.lang.NoClassDefFoundError: MyClass

    I've successfully compiled MyClass, in which I try to query this value.
    I haven't packaged anything yet.... and the .class file is just sitting in
    my development directory. Is this the problem?


  2. #2
    Paul Clapham Guest

    Re: reading env. variables.

    This isn't anything to do with your technique for reading environment
    variables. If you run "java MyClass" you will find the same problem, which
    is that your MyClass class isn't in your classpath.

    PC2

    "dotolee" <jwoo@enlogix.com> wrote in message
    news:3b150e60$1@news.devx.com...
    >
    > Hi. I'm trying to use the getProperty() method to read an env. variable

    called
    > "egix". I set it up using control panel in win 2000.
    > Some of the articles I read said that I have to run
    > java -Degix="<%egix%>" MyClass
    >
    > Everytime I try to do this, I get an error that says:
    > Exception in thread "main" java.lang.NoClassDefFoundError: MyClass
    >
    > I've successfully compiled MyClass, in which I try to query this value.
    > I haven't packaged anything yet.... and the .class file is just sitting in
    > my development directory. Is this the problem?
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center