Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tiger and NetBeans?

 
Barry Burd
Author
Ranch Hand
Posts: 118
5
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using the just-release NetBeans 3.6 Beta?
 
Barry Burd
Author
Ranch Hand
Posts: 118
5
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
5
Android Java
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Gregg!
From the article: Code Completion does not work with generics.
That just sucks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic