Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Java problems

  1. #1
    JPM
    JPM is offline
    Regular Coder
    Join Date
    Mar 2004
    Location
    Norway
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Java problems

    I dowloaded the j2sdk1.4.2_04, but when I innstalled it I got two errors

    "Java(TM) failes to apply changes to your system"

    and

    "Error 1722. There is a problem with this windows installer package. A program run as part of the setup did not finish as expected."

    I've tried re-innstalling it.

    It looks like it all works tho, but when I compile programs all of them are named 'Utskrift.class' , wich I guess would be 'Output.class' in english. It works, but I can only have one file at a time...

    Anyone know what could be wrong here?

    Oh, and the .java files should be in the same directory as java and javac right? (/bin)
    <JPM />

  • #2
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you logged on as administrator when you install the SDK? If not, the installer probably tried to change some environment variables and didn't have permissions.
    Oh, and the .java files should be in the same directory as java and javac right? (/bin)
    Not really. In fact, it's better you have them on a separate directory altogether. You need to add the /bin directory of the SDK to the path environment variable of your computer, then you'll be able to run javac and java from any directory (including the directory where you store your project's source files).

    shmoove


  •  

    Posting Permissions

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