NetBeans IDE and JVM switch

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NetBeans IDE and JVM switch

kosmos890
I add the below switches in netbeans_default_options (netbeans.conf file).  

Code:
-Dswing.plaf.metal.controlFont=Tahoma
-Dswing.plaf.metal.userFont=Tahoma



 
The switches works in win8.1 but in xubuntu 16.04 I have the message "Unknown option" java 1.8.0_151[/code]




Reply | Threaded
Open this post in threaded view
|

NetBeans IDE and JVM switch

priya465
You have two options

1) use 64 bit SWT Libraries.

2) use 32 bit JVM.

Of course you can switch from 64 bit JVM to 32 bit JVM with out modifying the Java code .

Java bytecode is platform independent, assuming you use platform independent libraries. 32

vs64 bit shouldn't matter.

But SWT library have to interact with native system function ,so the library is platform dependent.




Reply | Threaded
Open this post in threaded view
|

NetBeans IDE and JVM switch

kosmos890
In reply to this post by kosmos890
@priya465

Thanks for your reply.

My OS is ubuntu. I downloaded jdk1.8.0_151 jre 32 bit


Code:

km@km-pc ~/Downloads/jdk1.8.0_151/jre/bin $ ./java -d32 -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) Server VM (build 25.151-b12, mixed mode)
km@km-pc ~/Downloads/jdk1.8.0_151/jre/bin $ ./java -d64 -version
Error: This Java instance does not support a 64-bit JVM.
Please install the desired version.



I changed netbeans_jdkhome from  "/opt/netbeans-8.1/bin/jre" (default value) to "/home/km/Downloads/jdk1.8.0_151/jre" in /opt/netbeans-8.1/etc/netbeans.conf file.
But I cant run the netbeans IDE and there is no message in the terminal.


Code:

km@km-pc /opt/netbeans-8.1/bin $ ls
jre  netbeans  netbeans64.exe  netbeans.exe
km@km-pc /opt/netbeans-8.1/bin $ ./netbeans




(I do not want to completely remove the 64 bit jdk )