Error: Java.lang.NoSuchMethodError
Hello All,
I'm a beginner in Jabaco but i think that this can be a very powerfull tool for me and a lot of people like me that have to migrate an aplication from old VB6, this is my first post because i´m experiencing an error that is:
Java.lang.NoSuchMethodError: com.sun.java.swing.plaf.windows.DesktopProperty.<init>(Ljava/lang/String;Ljava/lang/Object;Ljava/awt/Toolkit
V
at net.java.plaf.windows.common.WindowsTitledBorderPatch.patch(WindowsTitledBorderPatch.java:44)
at net.java.plaf.LookAndFeelPatchManager.patch(LookAndFeelPatchManager.java:113)
at net.java.plaf.LookAndFeelPatchManager.initialize(LookAndFeelPatchManager.java:103)
at VB.JBCLookAndFeel.setDefaultLookAndFeel(JBCLookAndFeel.jsrc)
at VB.JBCLookAndFeel.Class_Initialize(JBCLookAndFeel.jsrc)
at VB.JBCLookAndFeel.<init>(JBCLookAndFeel.jsrc)
at VB.Global.LookAndFeelManager(Global.jsrc)
at VB.AbstractForm.initVars(AbstractForm.jsrc)
at VB.AbstractForm.<init>(AbstractForm.jsrc)
at VB.Form.<init>(Form.jsrc)
at Form1.<init>(Form1.jsrc)
at Module1.<clinit>(Module1.jsrc)
Someone can help-me please?
Thanks for all!!!
I'm a beginner in Jabaco but i think that this can be a very powerfull tool for me and a lot of people like me that have to migrate an aplication from old VB6, this is my first post because i´m experiencing an error that is:
Java.lang.NoSuchMethodError: com.sun.java.swing.plaf.windows.DesktopProperty.<init>(Ljava/lang/String;Ljava/lang/Object;Ljava/awt/Toolkit
Vat net.java.plaf.windows.common.WindowsTitledBorderPatch.patch(WindowsTitledBorderPatch.java:44)
at net.java.plaf.LookAndFeelPatchManager.patch(LookAndFeelPatchManager.java:113)
at net.java.plaf.LookAndFeelPatchManager.initialize(LookAndFeelPatchManager.java:103)
at VB.JBCLookAndFeel.setDefaultLookAndFeel(JBCLookAndFeel.jsrc)
at VB.JBCLookAndFeel.Class_Initialize(JBCLookAndFeel.jsrc)
at VB.JBCLookAndFeel.<init>(JBCLookAndFeel.jsrc)
at VB.Global.LookAndFeelManager(Global.jsrc)
at VB.AbstractForm.initVars(AbstractForm.jsrc)
at VB.AbstractForm.<init>(AbstractForm.jsrc)
at VB.Form.<init>(Form.jsrc)
at Form1.<init>(Form1.jsrc)
at Module1.<clinit>(Module1.jsrc)
Someone can help-me please?
Thanks for all!!!
Source code: Any code and /or without any code, the error occurs when i run the app.
OS: Windows XP SP3 - Portuguese-Brazil
java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
Is there anything missing?
Thank you!!!
OS: Windows XP SP3 - Portuguese-Brazil
java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
Is there anything missing?
Thank you!!!
I'm another newbie in the same boat--installed Jabaco, then created a hello world app. The app ran normally on the machine that I installed Jabaco on. So I decided to compile it as a .jar and try it on another machine.
Since the other machine had no java components on it whatsoever, I installed JRE v23. Then I tried running the .jar.
As mentioned above, the NoSuchMethodError is immediately displayed, but if I hit ignore, the hello world app functioned normally.
The posting above indicates installing JDK "solved" the problem, but that doesn't really work for distributing a program. I was under the assumption all I would need is the JRE to run a jabaco generated app. Can anyone clarify this for me? Or are we looking at a recent bug here, maybe with JRE v23?
Thanks
Since the other machine had no java components on it whatsoever, I installed JRE v23. Then I tried running the .jar.
As mentioned above, the NoSuchMethodError is immediately displayed, but if I hit ignore, the hello world app functioned normally.
The posting above indicates installing JDK "solved" the problem, but that doesn't really work for distributing a program. I was under the assumption all I would need is the JRE to run a jabaco generated app. Can anyone clarify this for me? Or are we looking at a recent bug here, maybe with JRE v23?
Thanks
We had occasional startup problems until early 2010. Most of them could be pinned down to Java installation problems.
You can find related posts using the search facility of this forum (look for "JAVA_HOME").
Java has Windows registry entries under HKEY_CURRENT_USER/Software/JavaSoft and HKEY_LOCAL_MACHINE/Software/JavaSoft
As far as I know, Java evaluates both the registry and the environment variables to find out its home.
Tricky users with several Java installations usually have little problems to confuse Jabaco,
especially after manually copying complete Java branches without properly updating the registry.
Non-Windows platforms like Apple Mac or some Java-enabled smartphones might pose additional difficulties.
Their java run-time libraries might lack certain classes called by Jabaco.
Please post your findings here
Greetings
A1880
You can find related posts using the search facility of this forum (look for "JAVA_HOME").
Java has Windows registry entries under HKEY_CURRENT_USER/Software/JavaSoft and HKEY_LOCAL_MACHINE/Software/JavaSoft
As far as I know, Java evaluates both the registry and the environment variables to find out its home.
Tricky users with several Java installations usually have little problems to confuse Jabaco,
especially after manually copying complete Java branches without properly updating the registry.
Non-Windows platforms like Apple Mac or some Java-enabled smartphones might pose additional difficulties.
Their java run-time libraries might lack certain classes called by Jabaco.
Please post your findings here
Greetings
A1880
More Info!
I can confirm that this problem is because of the recent java upgrade to v23. As I mentioned before, the test app ran perfectly on the machine I installed Jabaco on. That machine did not have Java on it, so the Jabaco installer installed it for me. It installed an older version (possibly v16?) apparently. I didn't notice this, but today Java automatically prompted me to install the latest v23 version. So I did. Since then, this machine exhibits the exact same startup problem as my other machine running v23, as described above.
So at least we know who to blame, in a vague sort of way...
I can confirm that this problem is because of the recent java upgrade to v23. As I mentioned before, the test app ran perfectly on the machine I installed Jabaco on. That machine did not have Java on it, so the Jabaco installer installed it for me. It installed an older version (possibly v16?) apparently. I didn't notice this, but today Java automatically prompted me to install the latest v23 version. So I did. Since then, this machine exhibits the exact same startup problem as my other machine running v23, as described above.
So at least we know who to blame, in a vague sort of way...
JRE 6.23 is running OK on my Windows XP system:
I haven't encountered any problems, neither running *.exe nor *.jar binaries.
What date and size has your Jabaco.jar framework file in the Jabaco program directory?
A1880
|
|
Source code |
1 2 3 |
java version "1.6.0_23" Java(TM) SE Runtime Environment (build 1.6.0_23-b05) Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing) |
I haven't encountered any problems, neither running *.exe nor *.jar binaries.
What date and size has your Jabaco.jar framework file in the Jabaco program directory?
A1880
It is just a wild guess, but it might help to try this Jabaco.jar
The download can be found here. Avoid releases smaller than 500kByte. They are incomplete.
The original error message indicates that something is wrong with the graphical user interface (Java Swing)
It might be that your Java installation has peculiar swing.properties (see here) which are incompatible with Jabaco.
What Windows are you using?
Greetings
A1880
The download can be found here. Avoid releases smaller than 500kByte. They are incomplete.
The original error message indicates that something is wrong with the graphical user interface (Java Swing)
It might be that your Java installation has peculiar swing.properties (see here) which are incompatible with Jabaco.
What Windows are you using?
Greetings
A1880
XP SP3 is OK. That's what I am using as well.
To experiment with the Jabaco.jar, save your existing Jabaco.jar (rename it with a date postfix) and replace it by the downloaded one.
Recompile your project and test the result.
What combination of local language (English, Spanish, Urdu, ...) and character set (ISO 8859-1, ...) are you using?
Is there any notable difference between the system where you run the IDE and the system where you started the executable?
Have you checked the Java issues mentioned in the Forum posts (search for "JAVA_HOME")?
Do you get your error message for your binary regardless if it is in *.exe or in *.jar format?
Success!
A1880
To experiment with the Jabaco.jar, save your existing Jabaco.jar (rename it with a date postfix) and replace it by the downloaded one.
Recompile your project and test the result.
What combination of local language (English, Spanish, Urdu, ...) and character set (ISO 8859-1, ...) are you using?
Is there any notable difference between the system where you run the IDE and the system where you started the executable?
Have you checked the Java issues mentioned in the Forum posts (search for "JAVA_HOME")?
Do you get your error message for your binary regardless if it is in *.exe or in *.jar format?
Success!
A1880
Ok, here we go. Originally, projects worked fine on jabaco installation. After automatic upgrade to 6.23, the startup error appeared, but projects still execute after hitting "continue."
When compiled as either an .exe or .jar, the error still pops up, on both the original machine, and also on another that has no jabaco installed, only JRE v23.
Both machines are XP SP3 with really no differences, English (US) with whatever character set would be standard (not familiar with that...)
I looked through the JAVA_HOME thread, but didn't see any of those issues. They also seemed more to describe not being able to get Java to start up. In this case, everything starts and runs normally, except for the initial error pop-up.
Finally, I downloaded the most recent 500K+ Jabaco.jar from this site, renamed my old, and copied it into install directory. Nothing appears to have changed--when running project in IDE, the error popup occurs. When compiled as either .exe or .jar, the pop-up still appears, on both of my machines. But the project always runs successfully after that.
What is odd here is that I couldn't have made a more clean installation--by chance the machine I installed Jabaco on is a brand new Windows install, with almost nothing else installed. Windows updates, that's about it. I guess I'm using Microsoft Security Essentials as an anti-virus, don't know if that could interfere...
I'll look on the Sun site to see if it is possible to download previous JRE versions, and start stepping back until things being working again, just as an experiment...
Thanks!
When compiled as either an .exe or .jar, the error still pops up, on both the original machine, and also on another that has no jabaco installed, only JRE v23.
Both machines are XP SP3 with really no differences, English (US) with whatever character set would be standard (not familiar with that...)
I looked through the JAVA_HOME thread, but didn't see any of those issues. They also seemed more to describe not being able to get Java to start up. In this case, everything starts and runs normally, except for the initial error pop-up.
Finally, I downloaded the most recent 500K+ Jabaco.jar from this site, renamed my old, and copied it into install directory. Nothing appears to have changed--when running project in IDE, the error popup occurs. When compiled as either .exe or .jar, the pop-up still appears, on both of my machines. But the project always runs successfully after that.
What is odd here is that I couldn't have made a more clean installation--by chance the machine I installed Jabaco on is a brand new Windows install, with almost nothing else installed. Windows updates, that's about it. I guess I'm using Microsoft Security Essentials as an anti-virus, don't know if that could interfere...
I'll look on the Sun site to see if it is possible to download previous JRE versions, and start stepping back until things being working again, just as an experiment...
Thanks!
Hi all,
got the same problems:
here what i did:
1. running jdk 6.17 and jre 6.23
-> no Error in Jabaco running the prog
-> Error when running compiled exe-file.
2. running jdk 6.21 and jre 6.23
-> no Error in Jabaco running the prog
-> Error when running compiled exe-file.
3. running jdk 6.23 and jre 6.23
-> Error in Jabaco running the prog
-> Error when running compiled exe-file.
Pressing 'Continue' program continues normally.
Looks like it really deals with the Java Version.
It seems as there's no workaround.
On my notebook I've got no problems running
Jabaco with jdk 6.21 and jre 6.22
Hubertus
got the same problems:
here what i did:
1. running jdk 6.17 and jre 6.23
-> no Error in Jabaco running the prog
-> Error when running compiled exe-file.
2. running jdk 6.21 and jre 6.23
-> no Error in Jabaco running the prog
-> Error when running compiled exe-file.
3. running jdk 6.23 and jre 6.23
-> Error in Jabaco running the prog
-> Error when running compiled exe-file.
Pressing 'Continue' program continues normally.
Looks like it really deals with the Java Version.
It seems as there's no workaround.
On my notebook I've got no problems running
Jabaco with jdk 6.21 and jre 6.22
Hubertus
This post has been edited 2 times, last edit by "htillmann" (Jan 21st 2011, 7:12pm)
Similar threads
-
General topics, questions and discussions »-
Error starting application
(Jul 1st 2009, 8:42pm)
-
Tips, Tricks, Samples & Tutorials »-
instanceOf for jabaco
(Jul 23rd 2010, 8:25pm)
-
General topics, questions and discussions »-
Jabaco on Windows Mobile 2005
(Oct 2nd 2009, 4:57am)
-
General topics, questions and discussions »-
How to cast?
(Feb 9th 2009, 12:30pm)
-
General topics, questions and discussions »-
FireBird JDBC Connection
(Feb 9th 2009, 2:29am)
