DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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?
    >




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links