You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

LuizRedes

Beginner

  • "LuizRedes" is male
  • "LuizRedes" started this thread

Posts: 9

Date of registration: Jan 12th 2011

Location: Brazil

Occupation: Visual Basic Programmer

Hobbies: Drive Muscle Cars

  • Send private message

1

Wednesday, January 12th 2011, 2:58pm

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!!!

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Wednesday, January 12th 2011, 5:52pm

Could you post or describe the source code causing this error?

What Java and what Windows are you using?

Greetings

A1880

LuizRedes

Beginner

  • "LuizRedes" is male
  • "LuizRedes" started this thread

Posts: 9

Date of registration: Jan 12th 2011

Location: Brazil

Occupation: Visual Basic Programmer

Hobbies: Drive Muscle Cars

  • Send private message

3

Wednesday, January 12th 2011, 6:16pm

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!!!

LuizRedes

Beginner

  • "LuizRedes" is male
  • "LuizRedes" started this thread

Posts: 9

Date of registration: Jan 12th 2011

Location: Brazil

Occupation: Visual Basic Programmer

Hobbies: Drive Muscle Cars

  • Send private message

4

Wednesday, January 12th 2011, 6:55pm

The problem was solved folks!
I simply install the JDK (before i got installed only the JRE) and the problem doesn't happened anymore!
Thanks for all!!!

Best regards!

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

5

Wednesday, January 12th 2011, 10:22pm

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

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

6

Thursday, January 13th 2011, 11:09am

Jabaco executable Jar files should be runnable with just a JRE.
I am not aware that JDK and JRE differ in their *.jar libraries.

It would be an interesting test to try an elder JDK.
Any volunteers out there?

Greetings

A1880

LuizRedes

Beginner

  • "LuizRedes" is male
  • "LuizRedes" started this thread

Posts: 9

Date of registration: Jan 12th 2011

Location: Brazil

Occupation: Visual Basic Programmer

Hobbies: Drive Muscle Cars

  • Send private message

7

Thursday, January 13th 2011, 1:11pm

YES!!! I can be a volunteer, with pleasure, but i need all detailed instructions on how to do the tests. I´m a newbie too in the "Java World" and "JABACO World" much more... rsrs


Thanks.

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

8

Thursday, January 13th 2011, 1:36pm

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

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

9

Thursday, January 13th 2011, 6:24pm

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...

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

10

Thursday, January 13th 2011, 9:58pm

JRE 6.23 is running OK on my Windows XP system:

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

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

11

Thursday, January 13th 2011, 11:39pm

In my install directory, Jabaco.jar is dated 8/8/2009 1:01 PM.

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

12

Friday, January 14th 2011, 12:16am

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

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

13

Friday, January 14th 2011, 1:15am

XP SP3. I'll see what I can do with the new framework file, not sure what I'm supposed to do with it, replace my existing one I assume...

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

14

Friday, January 14th 2011, 8:50am

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

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

15

Friday, January 14th 2011, 4:45pm

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!

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

16

Friday, January 14th 2011, 6:01pm

More Info: If I create a SDI project with just form and a label, the pop-up error occurs.

If I create a console application with a single added line of code MsgBox "Hello!", the application runs with no error pop-up.

LuizRedes

Beginner

  • "LuizRedes" is male
  • "LuizRedes" started this thread

Posts: 9

Date of registration: Jan 12th 2011

Location: Brazil

Occupation: Visual Basic Programmer

Hobbies: Drive Muscle Cars

  • Send private message

17

Friday, January 14th 2011, 9:03pm

Hello scGuy!

Here i experienced the same error but i solved this installing the Java SDK. I know that this is not an requirement to Jabaco, but you can try this...
I hope that this be helpful.

Best regards.

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

18

Friday, January 14th 2011, 9:29pm

Console applications don't use Java swing.
This gives rise to the suspicion that there could be something wrong with the Swing configuration.

Frankly speaking, I'm rather clueless on this one!

Sorry!

A1880

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

19

Saturday, January 15th 2011, 2:19am

Well, thank you for your efforts in any case. Maybe a future JRE update will fix the problem. Searches on google indicated that perhaps swing was updated, and did not maintain backward compatibility... the good news is that aside from the annoying pop-up, I can still run projects.

htillmann

Beginner

  • "htillmann" is male

Posts: 30

Date of registration: Feb 25th 2009

Location: Beverungen / Weser

Occupation: Softwareentwicklung

  • Send private message

20

Thursday, January 20th 2011, 9:20am

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

This post has been edited 2 times, last edit by "htillmann" (Jan 21st 2011, 7:12pm)


Rate this thread
WoltLab Burning Board