PDA

Click to See Complete Forum and Search --> : Just installed J++ - what did I do wrong?


ccoder
Jan 31st, 2001, 04:15 PM
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.

public class Hello2
{
public static void main( String args[] )
{
System.out.println( "Hello, World!" );
}
}

The complete error description is:

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.

Dillinger4
Jan 31st, 2001, 08:15 PM
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.

sail3005
Jan 31st, 2001, 11:06 PM
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

ccoder
Feb 1st, 2001, 08:56 AM
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.

Feb 1st, 2001, 01:34 PM
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.