You are not logged in.

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

21

Saturday, January 22nd 2011, 5:09pm

I can confirm also--installing JDK 23 does not make the popup error disappear, so definitely a v23 thing, they must have changed something in swing...

john

Beginner

Posts: 2

Date of registration: Jan 25th 2011

  • Send private message

22

Tuesday, January 25th 2011, 12:03pm

RE: Error: Java.lang.NoSuchMethodError

Hi I am also an learner with Jabaco. I am having the same message as copied below. I have tried to re-installing Java, upgrading, loading the developer and the error message does not go away. I complied the calculator sample provided with Jabaco, to make sure it was not my software, and it also generates the same message when being lloaded. I tested it on my XP sp3 dell notebook.

My concern is the fixes suggested below (which do not work for me) will not be available to people who I have sent or send the software too.

Does anyone know how to solve this issue please.

Thank you John
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

23

Tuesday, January 25th 2011, 1:07pm

Have you tried to install a Java Development Kit elder than JDK 1.6.23?

Greetings

A1880

john

Beginner

Posts: 2

Date of registration: Jan 25th 2011

  • Send private message

24

Tuesday, January 25th 2011, 3:43pm

ava.lang.NoSuchMethodError: com.sun.java.swing.plaf.windows.DesktopProperty.<init>

Danke, I do not really understand how to install an older version.

My concern is that a complied previously working program (.jar) no longer works on our main office computer - the same message pops up. Does this mean all users need to install an earlier version of Java Development Kit than JDK 1.6.23?

Respekt
John Tripp

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

25

Tuesday, January 25th 2011, 6:04pm

It runs OK on my systems (Windowx XP Home+Professional, SP3, JDK 1.6.23).
I have no idea what could be wrong with the systems which suffer from these problems.

Sorry!

A1880

Posts: 5

Date of registration: Nov 23rd 2010

  • Send private message

26

Sunday, February 6th 2011, 12:33am

Use Revo Uninstaller program to remove all versions and reinstall java again.

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

27

Sunday, February 6th 2011, 6:57pm

Could you tell us in more details about your observations?

Greetings

A1880

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

28

Thursday, February 10th 2011, 3:17pm

I'm a little skeptical of a clean-up style solution, since I've done a fresh install of java v23 on a brand new machine, and ran into the error. A1880, I'd be interested in this: In the control panel, under Java, on the Java tab where you can "view and manage java versions", when you get the list, is there more than just v23 listed? Can you uncheck the enabled flag on previous versions and potentially recreate the problem we are experiencing at will?

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

29

Thursday, February 10th 2011, 8:03pm

I've followed your suggestion and decativated all but the last JRE version.

Then I started a new Jabaco project and compiled it to project.exe
From within the IDE and outside the IDE I could start the project application without any problem or error message.
The suggestion sounded good, but ...

Greetings

A1880
A1880 has attached the following image:
  • Bild1.gif

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

30

Wednesday, February 16th 2011, 1:59pm

I've just updated to JDK 1.6.0_24 on Windows XP Professional SP3

Source code

1
2
3
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)


Jabaco works just fine!

Greetings

A1880

scGuy

Beginner

Posts: 40

Date of registration: Jan 12th 2011

  • Send private message

31

Friday, February 18th 2011, 6:33am

When 24 came out, I had high hopes the problem would go away... it didn't. I think we need to concentrate on the possible differences A1880's machine could have, all the rest of us seem to be hitting the bug. Bottom line for me is: 1) brand new unformatted HD, 2) installed XP and updated it to SP3, 3) installed jabaco, 4) installed java 23 (at the time) and the error appeared.



On another machine, it was also at XP SP3, no java, no jabaco. In this case, installed java 23 first, then jabaco, no difference than doing it the other way around, error appeared.



All I can think of is that A1880 has an older version of something on his machine that is "more" compatible with jabaco than a clean modern install. I would bet a lot of money on this: If you have a spare machine, wipe it out, install XP SP3 fresh, the java, then jabaco, and you'll be in our boat. It's not a very fun boat to be in though...



My interest in Jabaco is still strong, I'm going to keep at it and hope that a solution appears...

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

32

Friday, February 18th 2011, 8:46am

Thanks for your input.

In fact, I am running Jabaco sucessfully on several machines.
My main systems are Windows XP Home SP3 and Windows XP Professional SP3.
I have no decent statistics on how many users affected by the problem,
but I doubt that this would exceed 5%

The error is somehow related to Java Swing. To fully clarify, one has to use Java debugging tools
and trace back from the stack dump.Sadly, I neither have the Swing knowledge nor the resources
to do this on my own.

Greetings

A1880

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

33

Friday, February 18th 2011, 7:19pm

RE: Error: Java.lang.NoSuchMethodError

I have JDK 1.6.0_23 on my windows machine. And additional is JDK 1.6.0_20, which was previously installed.
On my System Jabaco works fine.

Java.lang.NoSuchMethodError: com.sun.java.swing.plaf.windows.DesktopProperty.<init>(Ljava/lang/String;Ljava/lang/Object;Ljava/awt/Toolkit;)V


Thats right. The method DesktopProperty(String, Object, Toolkit) dont't exists. There exists only the method (constructor) DesktopProperty(String, Object) in the class DesktopProperty.

Jabaco runs the programs in its own debugger.
Is it possible to compile programs with Jabaco and run it then outside the Jabaco-IDE?

For example try this:
1. Create a Jabaco-IDE project.
2. Pressing [F5´] or "Start" over the menu or the Start-symbol in the toolbar of the Jabaco-IDE.
3. Then it would abort with your mentioned error message.
4. Click in the menu on "Project" -> "Open Working Directory"
This directory looks for example like this: C:\Users\User\AppData\Local\Temp\Jabaco5684598
5. Pressing the two keys [windows-logo]+[R]
6. write in there "cmd" and press [Enter]
Now there is a window with a prompt like C:\Users\User>
write after that prompt "cd" and the Jabaco working directory. For example

Source code

1
cd C:\Users\User\AppData\Local\Temp\Jabaco5684598

7. then write "java" with the classpath of your Jabaco.jar and start Module1. For example

Source code

1
C:\Users\User\AppData\Local\Temp\Jabaco5684598>java -cp "C:\Program Files\Jabaco\Jabaco.jar";. Module1

8. Write here, if the error comes again or if the program starts.


And try to install the JDK, not only the JRE. Anybody says here, that installing the JDK helps.

I have looked in the Jabaco-sources. There is no DesktopProperty-method used.
Sadly Oracle have closed the side https://winlaf.dev.java.net , where the sourcecode of WinLAF was, from which Jabaco makes use.
Possible in that library would be the problem.

This post has been edited 3 times, last edit by "theuserbl" (Feb 18th 2011, 7:39pm)


theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

34

Friday, February 18th 2011, 8:23pm

Ok, the bug is in WinLAF.

In the package net.java.plaf.windows.common, the file WindowsTitledBorderPatch have this code (decompiled with jd-gui):

Source code

1
2
3
4
Toolkit toolkit = Toolkit.getDefaultToolkit();
    DesktopProperty highLight = new DesktopProperty("win.3d.highlightColor", UIManager.getColor("controlLtHighlight"), toolkit);

    DesktopProperty shadow = new DesktopProperty("win.3d.shadowColor", UIManager.getColor("controlShadow"), toolkit);


Don't know why it don't make with other Java versions problems.

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

35

Friday, February 18th 2011, 8:36pm

Ok, more information.

Java 1.6.0_20 have this code

Source code

1
2
3
4
5
6
7
 public DesktopProperty(String paramString, Object paramObject, Toolkit paramToolkit)
  {
    this.key = paramString;
    this.fallback = paramObject;
    this.toolkit = paramToolkit;
    flushUnreferencedProperties();
  }


Java 1.6.0_23 have this one:

Source code

1
2
3
4
5
6
7
public DesktopProperty(String paramString, Object paramObject)
  {
    this.key = paramString;
    this.fallback = paramObject;

    flushUnreferencedProperties();
  }


(decompiled with jd.gui the rt.jar files.

So it really changed the method.
But that is not surprising. Because the code is not in the packages java por javax .
It is in com.sun.java. And there the code can anytime backward incompatible change.

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

36

Friday, February 18th 2011, 8:37pm

So, one needs a proper Jabaco.jar to circumvent this error?

A1880

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

37

Friday, February 18th 2011, 8:40pm

So, one needs a proper Jabaco.jar to circumvent this error?

A1880


I think the best way would be to remove WinLAF from Jabaco.jar (with all dependencies).
In my eyes it makes no sence to have it in it. It takes a lot of space and I see no advantage over com.sun.java.swing.plaf.windows.WindowsLookAndFeel.
WinLAF works only on Windows, too.
And Jabaco using mostly the SystemLookAndFeel.

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

38

Friday, February 18th 2011, 8:48pm

Well, if it is of no use, it should be taken out or replaced by something better. JGoodies?

Greedings

A1880

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

39

Friday, February 18th 2011, 9:05pm

Would it help to define the default look&feel as described here?

Greetings

A1880

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

40

Friday, February 18th 2011, 9:06pm

Well, if it is of no use, it should be taken out


That is, what I prefer in this situation. But I don't know why Manuel uses WinLAF. It uses com.sun.java.swing.plaf.windows.DesktopProperty. So the WinLAF implementation is based on the Windows-implementation which is thegrated in Java. For me it makes really no sence. The complete WinLAF makes for me no sence.
But some advantages it would be having. And thats what I miss to know, before I know which decision would be best.

Quoted

or replaced by something better.


Personally I would prefer someting platformindependent like Swing/Metal or TinyLAF: http://www.muntjak.de/hans/java/tinylaf/index.html
But this would go againt everything Manuel have created. Because in all colors are per default in Jabaco System-Colors.
So the nearest thing would be to using completely the SystemLAF insted of WinLAF in parts. But as I said: I don'T know the advantages of WinLAF.

Quoted

JGoodies?

What advantages have it?

Rate this thread
WoltLab Burning Board