aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Tiger and NetBeans? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tiger and NetBeans?" Watch "Tiger and NetBeans?" New topic
Author

Tiger and NetBeans?

Barry Burd
Author
Ranch Hand

Joined: Jun 18, 2003
Posts: 118
    
    5

I know very little about NetBeans, but I'm trying to compile and run a Java 1.5 beta (Tiger) program within the NetBeans environment. Can anyone point me to an assume-almost-no-NetBeans-knowledge list of instructions for doing this? I've tried tweaking the compiler settings in NetBeans, but I haven't had any luck.
Thanks.


Java For Dummies, 6th Edition, Java Programming for Android Developers For Dummies
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Are you using the just-release NetBeans 3.6 Beta?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Barry Burd
Author
Ranch Hand

Joined: Jun 18, 2003
Posts: 118
    
    5

Following your suggestion, I just installed the NetBeans beta. During install it found the 1.5 compiler. (That's good.) When I open a program written for 1.5, NetBeans finds the new classes (so it's using the correct API) but it's not recognizing the new syntax features. I assume that this is because it doesn't have the "-source 1.5" switch set for the compiler. How do I set the "-source 1.5" switch? I tried poking around in Options -> Compiler -> Internal Compiler, but I couldn't find a place to add that switch.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Long Story
I just poked around on their mail list a bit and with the IDE settings on both the 3.5.1 and 3.6 releases. I can't get it to work with the new syntax. It might not yet be supported.
According to their web site, Java 1.5 syntax support is planned for the 4.0 release, which isn't planned to come out until the end of the year. Hopefully, they'll work it into the 3.6 release a lot sooner, but it doesn't seem to be in it yet, nor does it seem to be planned. Perhaps if we do a little pushing and noise making, folks over at NetBeans might change their plans.
Note that the 3.6.1 and 3.5 releases have an option in the internal compiler settings to enable GJ support. If I've understood a remark from a NetBeans developer in the mailing list archives correctly, this feature has been disabled as it supported a syntax different than what Java 1.5 is currently slated to have.
In other words...
Short Story
I can't figure it out.
[ February 09, 2004: Message edited by: Dirk Schreckmann ]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Ah ha!
I did successfully configure the external compiler to compile for Java 1.5. Just specify "-source 1.5" under Options -> Building -> Compiler Types -> External Compilation -> Properties -> External Compiler.
Note that 1.5 syntax still appears as incorrect according to the internal compiler.
Barry Burd
Author
Ranch Hand

Joined: Jun 18, 2003
Posts: 118
    
    5

That works. Thanks Dirk.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

http://www.netbeans.org/community/articles/tiger/36Tiger.html
That article tells you everything you need to know to get Netbeans 3.6 Beta to work with Tiger. In case you run into other problems.


GenRocket - Experts at Building Test Data
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Thanks Gregg!
From the article: Code Completion does not work with generics.
That just sucks.
 
Don't get me started about those stupid light bulbs.
 
subject: Tiger and NetBeans?