|
-
Jan 31st, 2001, 05:15 PM
#1
Thread Starter
Frenzied Member
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.
-
Jan 31st, 2001, 09:15 PM
#2
Dazed Member
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.
-
Feb 1st, 2001, 12:06 AM
#3
PowerPoster
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
-
Feb 1st, 2001, 09:56 AM
#4
Thread Starter
Frenzied Member
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, 02:34 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|