Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

View: New views
9 Messages — Rating Filter:   Alert me  

Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by hobin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

After I installed the "Java for MAC OS X 10.5 Update 4" my Netbeans 6.5.1 will not load a new project.  It starts and goes to 25% progress and hangs forever.  I had Netbeans 6.5 and the same issue occurred.  I am running the following Java version:

java version "1.5.0_19"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)

Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)



Any ideas?  Thanks.





Re: Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by marianm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi hobin,
could you please try latest NB 6.7 build ... can be downloaded from :
http://deadlock.netbeans.org/hudson/job/release67/

link NetBeans-dev-release67-XX-on-0906YY-full.zip

and test it ? We've fixed couple issues related to latest changes in Apple's
JDK.

Thanks in advance,
*Marian

hobin wrote:

> After I installed the "Java for MAC OS X 10.5 Update 4" my Netbeans 6.5.1 will not load a new project.  It starts and goes to 25% progress and hangs forever.  I had Netbeans 6.5 and the same issue occurred.  I am running the following Java version:
>
> java version "1.5.0_19"
>
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
>
> Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)
>
>
>
> Any ideas?  Thanks.
>
>
>
>

Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by rkj-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


oldgit wrote:
>

> Find this line

>
> Code:
> netbeans_jdkhome=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
>
>

> and change to

>
> Code:
> netbeans_jdkhome=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
>
>

>




This only works on 64-bits processors. On 32bits (older MacBooks and MacBooks Pro) you get:


Code:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java

zsh: bad CPU type in executable: /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java





Is there any other solution?





Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by rkj-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Marian Mirilovic wrote:
>

> http://deadlock.netbeans.org/hudson/job/release67/

>

> link NetBeans-dev-release67-XX-on-0906YY-full.zip

>

> and test it ? We've fixed couple issues related to latest changes in Apple's

> JDK.

>




Is is working, thanks :D





Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by oldgit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes. That's what I found out. I did try a selective revert using Time Machine and tried restoring earlier versions of NB abd Java, but this only broke several other applications.



In the end, I did a complete Time Machine restore to a recent good configuration. Everything's working again - only I'm not going to update Java until I'm pretty sure the issue is solved.





Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by sharma.meg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

finally got the thing to work.. thanks a lot! appreciate your help...





Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by sharma.meg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using v6.5.1 so i first installed Java 6 (Java for Mac OS X 10.5 Update 4)



Then I changed the Java Applet Runtime Settings. You can get this info here:

http://www.metaphoriclabs.com/articles/installing-java-6-on-mac-os-x/



Finally, I made the change in the netbeans_jdkhome variable in netbeans.conf file to version 1.6 instead of 1.5



Took quite a while to figure out all the three things since it isn't all that obvious... Hope it works for you.





Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by normen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have this problem as well, I cannot create new files or projects and have all kinds of other problems..



As it seems, it is caused by a ClassLoadException when trying to load classes from javax.scripting..

Did Apple remove the Scripting Interface in Java5 because of this security problem in Java that was discovered? - dont remember the details..



I am also developing on a 32bit Intel MacBook, so no JDK6 from Apple.. OpenJDK6 runs on X11, that is no real solution for me..



I started Moving to NB6.7, which seems to work, but I get other funny stuff there (apart from the fact that IceFaces is not supported):

When I try to build a NetBeans Module project with UI elements, I get an error from the javac compiler:

"Invalid flag -processorpath"

Is the compiler in this 1.5.0_19 bugfixcrapversion also crippled or is that netbeans 6.7 trying to use Java6 compiler options?



I really hate what Apple does with its Java implementation. They only tune it for their own WebService stuff and leave the rest behind..



Normen





Re: Netbeans 6.5.1 issue after Java for MAC OS X 10.5 Update 4

by Martin Schovanek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Normen,

see the foolowing issue, there is also a workaround:
http://www.netbeans.org/issues/show_bug.cgi?id=167188#desc5

-Martin

On Jul 3, 2009, at 4:22 PM, normen wrote:

> I have this problem as well, I cannot create new files or projects  
> and have all kinds of other problems..
>
>
>
> As it seems, it is caused by a ClassLoadException when trying to  
> load classes from javax.scripting..
>
> Did Apple remove the Scripting Interface in Java5 because of this  
> security problem in Java that was discovered? - dont remember the  
> details..
>
>
>
> I am also developing on a 32bit Intel MacBook, so no JDK6 from  
> Apple.. OpenJDK6 runs on X11, that is no real solution for me..
>
>
>
> I started Moving to NB6.7, which seems to work, but I get other  
> funny stuff there (apart from the fact that IceFaces is not  
> supported):
>
> When I try to build a NetBeans Module project with UI elements, I  
> get an error from the javac compiler:
>
> "Invalid flag -processorpath"
>
> Is the compiler in this 1.5.0_19 bugfixcrapversion also crippled or  
> is that netbeans 6.7 trying to use Java6 compiler options?
>
>
>
> I really hate what Apple does with its Java implementation. They  
> only tune it for their own WebService stuff and leave the rest  
> behind..
>
>
>
> Normen
>
>
>
>