Results 1 to 5 of 5

Thread: Just installed J++ - what did I do wrong?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    I decided it was time to take a look at Java, so I installed a copy of J++ v.1.1 that I had laying around.

    Browsing through the stuff under the Info tab, I found the topic "Creating a Simple Java Application" and followed the steps up the Build when I got a J0051 error.

    The app is just the standard "Hello World" program.
    Code:
    public class Hello2
    {
        public static void main( String args[] )
        {
            System.out.println( "Hello, World!" );
        }
    }
    The complete error description is:
    Code:
    Compiling...
    Microsoft (R) Visual J++ Compiler Version 1.01.7022
    Copyright (C) Microsoft Corp 1996. All rights reserved.
    D:\Devel\Java\Hello2.java(0,0) : error J0051: Undefined package 'lang'
    Error executing jvc.exe.
    
    Hello2 - 1 error(s), 0 warning(s)
    Anyone have an idea what the problem is? Did I miss something in the install? BTW, the install did skip the DAO step as I ran out of disk space (had less space than I thought). Didn't think it would be a problem for the time being.

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    i dont know too much about the J++ IDE but if you
    were using Sun's FORTE or jdk1.3 the code would be correct because the java.lang package is included
    by default.



  3. #3
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    yeah, that doesn't make sense to me either, maybe you should try a different compiler, such as jbuilder 4 foundation, found at http://www.inprise.com

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    Originally posted by sail3005
    yeah, that doesn't make sense to me either, maybe you should try a different compiler, such as jbuilder 4 foundation, found at http://www.inprise.com
    I would if I could. I have always preferred Borland products. The problem is that the company standard is Microsoft.

  5. #5
    Guest
    That code would have worked perfectly under http://java.sun.com 's java. I just read (from a link posted at this forum) that MS will/has settled with Sun to comply with Sun's implementation of Java and that MS will effectively phase out Java over the next 7 years or some such.

    Microsoft Agrees to Settlement that Protects Future Integrity of the JavaTM Platform
    http://java.sun.com/lawsuit/

    So, your company might move to TRUE Java. If I were you, I'd be recommending it to my supervisor.

    To protect developers and consumers using Microsoft's outdated version of Java technology, Sun has agreed to grant Microsoft a limited license to continue to distribute its current version of the software, provided that all future versions of such products pass Sun's compatibility tests. This part of the agreement lasts seven years. Beyond that date, Microsoft can not distribute Java technology or use any of Sun's intellectual property.

Posting Permissions

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



Click Here to Expand Forum to Full Width