When I run mobile application in netbeans 6.9.1 it shows me below error in output window.
it doesn't allow me to start emulator.
java.lang.UnsatisfiedLinkError: /home/devindia/netbeans-6.9.1/mobility/WTK2.5.2/bin/sublime.so: /home/devindia/netbeans-6.9.1/mobility/WTK2.5.2/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
at java.lang.Runtime.load0(Runtime.java:787)
at java.lang.System.load(System.java:1022)
at com.sun.kvem.Sublime.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at com.sun.kvem.Lime.createLime(Unknown Source)
at com.sun.kvem.KVMBridge.<init>(Unknown Source)
at com.sun.kvem.KVMBridge.getBridge(Unknown Source)
at com.sun.kvem.midp.MIDP.run(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.sun.kvem.environment.JVM.main(Unknown Source)
/home/devindia/NetBeansProjects/MobileApplication1/nbproject/build-impl.xml:898: Execution failed with error code 1.
BUILD FAILED (total time: 8 seconds)
I use ubuntu 10.4. 64 bit machine.
Looks like there is no way to run mobile emulator on x64-jdk (in linux), so you additionaly need to install x32-jdk to compile and run your ME-projects with it.
Usually this error means a mismatch in the java runtime. Are you running your code in 64 bit java runtime. ( I guess you downloaded Netbeans for 64bit linux)
Related
I just installed Weka 3.7.13 on Windows 8.1 64bit. When I am starting the apps, it give a run time error "Could not locate default config file". I am using the same application for long time but today it start this error.
The run time error that I received is
[31-10-2015 15:20:00] [Warning] [Load Config] Could not locate default config file.
Exception in thread "main" java.lang.NoSuchFieldError: m_simplePanel
org.openml.weka.gui.OpenmlSetupModePanel.<init>(OpenmlSetupModePanel.java:43)
org.openml.weka.gui.OpenmlExperimenter.<init>(OpenmlExperimenter.java:46
)
org.openml.weka.gui.OpenmlExperimenter.<init>(OpenmlExperimenter.java:75
)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source
)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
weka.gui.beans.PluginManager.getPluginInstance(PluginManager.java:329)
weka.gui.GUIChooser.<init>(GUIChooser.java:1051)
weka.gui.GUIChooser.createSingleton(GUIChooser.java:268)
weka.gui.GUIChooser.main(GUIChooser.java:1690)
at org.openml.weka.gui.OpenmlSetupModePanel.<init>(OpenmlSetupModePanel.java:43)
at org.openml.weka.gui.OpenmlExperimenter.<init>(OpenmlExperimenter.java:46)
at org.openml.weka.gui.OpenmlExperimenter.<init>(OpenmlExperimenter.java:75)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at weka.gui.beans.PluginManager.getPluginInstance(PluginManager.java:329
)
at weka.gui.GUIChooser.<init>(GUIChooser.java:1051)
at weka.gui.GUIChooser.createSingleton(GUIChooser.java:268)
at weka.gui.GUIChooser.main(GUIChooser.java:1690)
Thanking you in anticipation
It may be a problem with OpenML package (the same happened to me).
Search in wekafiles/packages for a folder called OpenmlWeka and delete it. I'm not sure where it is on windows but I guess that wekafiles folder should be at your user's home. Then you should be able to run weka as usual.
If later you need to use OpenML you can reinstall it from the weka's package manager.
I have a javafx program that I was formerly developing in sublime text before migrating to intellij as my editing environment. As of now, I can compile and run without error through the command line (Windows). However, when I try to run it from intellij, I get the following message:
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:875)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$147(LauncherImpl.java:157)
at com.sun.javafx.application.LauncherImpl$$Lambda$1/868693306.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException: Location is required.
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3201)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3169)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3142)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3118)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3098)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3091)
at Main.setNewScene(Main.java:40)
at Main.start(Main.java:29)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$153(LauncherImpl.java:821)
at com.sun.javafx.application.LauncherImpl$$Lambda$50/2069914884.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$166(PlatformImpl.java:323)
at com.sun.javafx.application.PlatformImpl$$Lambda$46/646648017.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$164(PlatformImpl.java:292)
at com.sun.javafx.application.PlatformImpl$$Lambda$48/1106256089.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(PlatformImpl.java:291)
at com.sun.javafx.application.PlatformImpl$$Lambda$47/151108218.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
at com.sun.glass.ui.win.WinApplication$$Lambda$38/2004449016.run(Unknown Source)
... 1 more
Process finished with exit code 1
I don't know how to fix this.
The problem turned out to be intellij having an issue with the source folder in the project directory. By moving all my java files to a new directory and reopening it in intellij as a new project with a single, correct source folder, the problem completely went away.
(As stated in the question, the code itself was functional and worked through the command line.)
I tried to start a java enterprise application (running on JBoss 4.3) on Solaris 5.10 using JDK 1.8u51. Unfortunately I get the following exception from the jdbc driver:
java.nio.charset.UnsupportedCharsetException: IS646-US
Does anyone know what's up with that? It all works without problems on JDK 1.7u65
Here's the stacktrace:
java.nio.charset.UnsupportedCharsetException: IS646-US
at java.nio.charset.Charset.forName(Charset.java:531)
at sun.nio.fs.Util.<clinit>(Util.java:41)
at sun.nio.fs.UnixFileSystem.<init>(UnixFileSystem.java:52)
at sun.nio.fs.SolarisFileSystem.<init>(SolarisFileSystem.java:43)
at sun.nio.fs.SolarisFileSystemProvider.newFileSystem(SolarisFileSystemProvider.java:46)
at sun.nio.fs.SolarisFileSystemProvider.newFileSystem(SolarisFileSystemProvider.java:39)
at sun.nio.fs.UnixFileSystemProvider.<init>(UnixFileSystemProvider.java:56)
at sun.nio.fs.SolarisFileSystemProvider.<init>(SolarisFileSystemProvider.java:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at sun.nio.fs.DefaultFileSystemProvider.createProvider(DefaultFileSystemProvider.java:48)
at sun.nio.fs.DefaultFileSystemProvider.create(DefaultFileSystemProvider.java:61)
at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:108)
at java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:89)
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:98)
at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:96)
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:96)
at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(FileSystems.java:90)
at java.nio.file.FileSystems.getDefault(FileSystems.java:176)
at java.io.File.toPath(File.java:2234)
at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:190)
at sun.security.provider.SeedGenerator$1.run(SeedGenerator.java:168)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.provider.SeedGenerator.getSystemEntropy(SeedGenerator.java:168)
at sun.security.provider.SecureRandom$SeederHolder.<clinit>(SecureRandom.java:201)
at sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:221)
at java.security.SecureRandom.nextBytes(SecureRandom.java:468)
at oracle.security.o5logon.O5Logon.a(Unknown Source)
at oracle.security.o5logon.O5Logon.<clinit>(Unknown Source)
at oracle.jdbc.driver.T4CTTIoauthenticate.<init>(T4CTTIoauthenticate.java:566)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:370)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:207)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:139)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:88)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1598)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeOneConnection(OracleImplicitConnectionCache.java:515)
at oracle.jdbc.pool.OracleImplicitConnectionCache.getCacheConnection(OracleImplicitConnectionCache.java:475)
at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:357)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:395)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:179)
...
It looks like a typo, it should be ISO646-US (better known as ASCII or US-ASCII).
Likely cause is that you are running with a -Dfile.encoding=IS646-US (or similar), for example explicitly in the startup configuration of the application server.
I'm developing a Java Swing application using some features of JavaFX 2(such as WebBrowser).
I tried to reference the jfxrt.jar file from inside my folders, since it seems that a javaFX2 installer for MAC is not available (only installing Java 7).
But I would like to use JavaFX 2 also with Java 6.
I get this error:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.NoSuchMethodError: getScaleFactor
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(Unknown Source)
at com.sun.javafx.application.PlatformImpl.startup(Unknown Source)
at javafx.embed.swing.JFXPanel.initFx(Unknown Source)
at javafx.embed.swing.JFXPanel.<init>(Unknown Source)
at javabrowser.JpJavaBrowser.initComponentsFx(JpJavaBrowser.java:63)
at javabrowser.JpJavaBrowser.<init>(JpJavaBrowser.java:59)
at orderbook.FrOrderBook.initComponents(FrOrderBook.java:625)
at orderbook.FrOrderBook.<init>(FrOrderBook.java:179)
at orderbook.FrOrderBook$2.run(FrOrderBook.java:681)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
...
Caused by: java.lang.NoSuchMethodError: getScaleFactor
at com.sun.glass.ui.mac.MacApplication._initIDs(Native Method)
at com.sun.glass.ui.mac.MacApplication.<clinit>(Unknown Source)
at com.sun.glass.ui.mac.MacPlatformFactory.createApplication(Unknown Source)
at com.sun.glass.ui.Application.Run(Unknown Source)
... 23 more
How can I fix this?
JavaFX 2 does not support Java6 on OS-X - Java6 is only supported on win32
I developed a javafx(2.2) application that link to a certain site. The app is running fine in netbeans 7.3 but when I deploy it the following error will occur.
java.lang.UnsatisfiedLinkError: com.sun.deploy.config.WinPlatform.getPlatformUserHome()Ljava/lang/String;
at com.sun.deploy.config.WinPlatform.getPlatformUserHome(Native Method)
at com.sun.deploy.config.WinPlatform.getUserHome(Unknown Source)
at com.sun.deploy.config.WinPlatform.getLocalStorageDir(Unknown Source)
at com.sun.deploy.config.Config.getLocalStorageDir(Unknown Source)
at com.sun.deploy.config.Config.getDefaultCacheDirectory(Unknown Source)
at com.sun.deploy.config.DefaultConfig.init(Unknown Source)
at com.sun.deploy.config.DefaultConfig.<init>(Unknown Source)
at com.sun.deploy.config.DefaultConfig.getDefaultConfig(Unknown Source)
at com.sun.deploy.config.Config.get(Unknown Source)
at com.sun.deploy.net.proxy.UserDefinedProxyConfig.getBrowserProxyInfo(Unknown Source)
at com.sun.deploy.net.proxy.DynamicProxyManager.reset(Unknown Source)
at com.sun.deploy.net.proxy.DeployProxySelector.reset(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.javafx.main.Main.tryToSetProxy(Main.java:572)
at com.javafx.main.Main.launchApp(Main.java:640)
at com.javafx.main.Main.main(Main.java:805)
I really don't know what is the cause of the problem. Is it my proxy or platform I used? I am using java 1.7 32bit Hope someone will help me. Thanks.
I resolved compiling the code on a 32bit pc with only 32bit jdk installed. It worked for me cause I have a 32bit application (once compiled it works fine on 64bit pc as well) but i guess that if you need a 64bit application compile it on 64bit pc with the 64bit jdk and netbeans configured for working with this jdk.