iMac Intel Core Duo; OS X 10.4.8; Java 1.5.0_06; R 2.4.1; JGR 1.4-14; rJava 0.4-12; iplots 1.0-5 I'm unable to get JGR or iplots to load using "library(JGR)" or "library(iplots)", respectively. This feels like it might be a classpath or Mac look-and-feel issue, but I'm not sure where to go with it at this point. I've searched the fora and web to no avail. Any pointers are appreciated.> install.packages("JGR",dep=TRUE) > library(JGR)Loading required package: iplots Error in .jnew("org/rosuda/iplots/Framework") : Failed to create object of class `org/rosuda/iplots/Framework' In addition: Warning message: NewObject("org/rosuda/iplots/Framework","()V",...) failed Error: package 'iplots' could not be loaded Exception in thread "main" java.lang.NoClassDefFoundError at com.apple.mrj.MRJPriv.registerAboutHandler(MRJPriv.java:281) at com.apple.mrj.MRJApplicationUtils.registerAboutHandler(MRJApplicationUtils.java:64) at org.rosuda.util.PlatformMac.registerHandlers(PlatformMac.java:43) at org.rosuda.util.PlatformMac.<init>(PlatformMac.java:20) at org.rosuda.iplots.PlatformMac.<init>(PlatformMac.java:16) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.rosuda.util.Platform.initPlatform(Platform.java:44) at org.rosuda.iplots.Framework.<init>(Framework.java:48)>or in the case of iplots directly...> library(iplots)Error in .jnew("org/rosuda/iplots/Framework") : Failed to create object of class `org/rosuda/iplots/Framework' In addition: Warning message: NewObject("org/rosuda/iplots/Framework","()V",...) failed Error in library(iplots) : .First.lib failed for 'iplots' Exception in thread "main" java.lang.NoClassDefFoundError at com.apple.mrj.MRJPriv.registerAboutHandler(MRJPriv.java:281) at com.apple.mrj.MRJApplicationUtils.registerAboutHandler(MRJApplicationUtils.java:64) at org.rosuda.util.PlatformMac.registerHandlers(PlatformMac.java:43) at org.rosuda.util.PlatformMac.<init>(PlatformMac.java:20) at org.rosuda.iplots.PlatformMac.<init>(PlatformMac.java:16) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.rosuda.util.Platform.initPlatform(Platform.java:44) at org.rosuda.iplots.Framework.<init>(Framework.java:48)>-- View this message in context: http://www.nabble.com/iplots-JGR-on-OS-X-10.4.8-tf2867552.html#a8014572 Sent from the R help mailing list archive at Nabble.com.
Pointers only hopefully of some help. iplots should work as you have described, however there have been a number of different versions of JGR each for a different version of R - have you got the correct version? I believe JGR shouldn't work as you have described, even though I have no experience of running JGR on a Mac, but JGR is an alternative gui for R written in Java and so running under the Java virtual machine. Hence you do not start R directly, on Window you run jgr.exe which starts up R. On a Mac I would expect either a Mac executable or to run jgr.jar - this will then start JGR and R, iplots should then work if Java is correctly installed. On 12/21/06, bobp <rmpruzek@yahoo.com> wrote:> > > iMac Intel Core Duo; OS X 10.4.8; Java 1.5.0_06; R 2.4.1; JGR 1.4-14; > rJava > 0.4-12; iplots 1.0-5 > > I'm unable to get JGR or iplots to load using "library(JGR)" or > "library(iplots)", respectively. This feels like it might be a classpath > or > Mac look-and-feel issue, but I'm not sure where to go with it at this > point. > I've searched the fora and web to no avail. >[[alternative HTML version deleted]]