greg2001 / seaglass

Automatically exported from code.google.com/p/seaglass
0 stars 0 forks source link

Not Working with java 7 #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not Working with java 7

Original issue reported on code.google.com by gnadh2007 on 30 Jun 2011 at 7:05

GoogleCodeExporter commented 9 years ago
Yes, I've known that for quite some time. Is Java 7 released yet?

Original comment by kahuxtable on 30 Jun 2011 at 11:51

GoogleCodeExporter commented 9 years ago
hmm not yet but i use a snapshot of it

But i solved the problem

just some change from com.sun.java.swing are moved to javax.swing 

Original comment by gnadh2007 on 30 Jun 2011 at 8:08

GoogleCodeExporter commented 9 years ago
Hi,
Yes I had also a look at this some time ago. 
With Java 7 the nimbus look and feel moved from sun.com. to javax. package and 
is now offically supported. Seaglass still depends on some synth classes that 
will also be moved to javax package.

The fix is not very complicated but it will be a little bit tricky to build a 
version that is compatible with both Java releases: Java 6 and Java 7.
All users that have Seaglass already in production (are there any?) will get a 
problem if their users upgrade Java when Java 7 is released. This will break 
the existing seaglass version and therefore the program that is shipping 
seaglass. We cannot ship a version that is compatible with both Java releases.

The Java release is scheduled end of Juli 2011 if they do not delay it.

So it is now time to think what we can do here.
After some absence I hope to find again more time to support this project.
I will play around with Java 7 in the next weeks to find out if we can build 
something into seaglass or get rid of the current com.sun dependencies somehow. 

P.S. Perhaps it would be fair to warn all users on the mailing list. If someone 
uses seaglass productive he has to either hope that we solve this or replace 
seaglass. But in any case he will at least need to upgrade seaglass when we 
have a fix.

Have fun,
- Rossi

Original comment by rosstaus...@googlemail.com on 30 Jun 2011 at 9:55

GoogleCodeExporter commented 9 years ago
Yikes! That close to release. Okay.

I'm currently working full-time at a company developing Swing apps for a 
specific purpose. I don't know how much time I have to work on it.

Rossi, see what you can do, and let us know.

I'll post something on the mailing list.

Original comment by kahuxtable on 1 Jul 2011 at 4:04

GoogleCodeExporter commented 9 years ago
Please, build a version with Java 7 support. 

Original comment by syscr...@gmail.com on 5 Jul 2011 at 8:30

GoogleCodeExporter commented 9 years ago
I had given this some thought back in the spring of 2010. I'll do some work on 
this this morning. I'm feeling enthusiastic.

Amusingly enough, the company I work for uses Substance for their 
cross-platform UI.

Original comment by kahuxtable on 9 Jul 2011 at 12:16

GoogleCodeExporter commented 9 years ago
I take it back. I can only work on this on Windows and for me that's a virtual 
environment. So I won't be working on this at the moment.

Original comment by kahuxtable on 9 Jul 2011 at 12:39

GoogleCodeExporter commented 9 years ago
Is there any update about sea-glass's support with java 7?
I am working on my final project for Bsc.  on computer science and I am 
currently using java 7 with Nimbus look and feel.
When I am trying to load the seaglass look and feel by calling : 
*UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");*
,even though my Maven is sets up correctly and the relevant jar is in my 
ClassPath I get an exception :

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: 
sun/swing/plaf/synth/SynthUI
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1871)
    at javax.swing.UIDefaults.getUIClass(UIDefaults.java:683)
    at javax.swing.UIDefaults.getUI(UIDefaults.java:755)
    at javax.swing.UIManager.getUI(UIManager.java:1002)
    at javax.swing.JPanel.updateUI(JPanel.java:126)
    at javax.swing.JPanel.<init>(JPanel.java:86)
    at javax.swing.JPanel.<init>(JPanel.java:109)
    at javax.swing.JPanel.<init>(JPanel.java:117)
    at javax.swing.JRootPane.createGlassPane(JRootPane.java:545)
    at javax.swing.JRootPane.<init>(JRootPane.java:365)
    at javax.swing.JFrame.createRootPane(JFrame.java:277)
    at javax.swing.JFrame.frameInit(JFrame.java:258)
    at javax.swing.JFrame.<init>(JFrame.java:181)
    at presentation.ConnectionScreen.<init>(ConnectionScreen.java:302)
    at presentation.ConnectionScreen$3.run(ConnectionScreen.java:296)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
    at java.awt.EventQueue.access$000(EventQueue.java:101)
    at java.awt.EventQueue$3.run(EventQueue.java:666)
    at java.awt.EventQueue$3.run(EventQueue.java:664)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: sun.swing.plaf.synth.SynthUI
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 43 more

Thank you all very much.

Original comment by ozmolaim@gmail.com on 25 Aug 2011 at 12:36

GoogleCodeExporter commented 9 years ago
Yup, I also get the NoClassDefFoundError:

Exception in thread "main" java.lang.NoClassDefFoundError: 
sun/swing/plaf/synth/SynthUI

Original comment by kpietrza...@rajant.com on 27 Sep 2011 at 2:40

GoogleCodeExporter commented 9 years ago
Just Replace the sun.swing with javax.swing

and the problem is solved

Original comment by gnadh2007 on 27 Sep 2011 at 5:17

GoogleCodeExporter commented 9 years ago
Issue 86 has been merged into this issue.

Original comment by kahuxtable on 21 Nov 2011 at 1:45

GoogleCodeExporter commented 9 years ago
I had downloaded the last version through svn, and its working on JRE 7. Hope 
it helps others.

Original comment by irving...@gmail.com on 9 Dec 2011 at 4:06

GoogleCodeExporter commented 9 years ago
I get the "Exception in thread "main" java.lang.NoClassDefFoundError: 
sun/swing/plaf/synth/SynthUI" error as well.  

Gnadh, could you explain how to replace the dependency from sun to javax?

Original comment by Jeremy.P...@gmail.com on 30 Jan 2012 at 6:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Open source in NetBeans or Eclipse and
replace "com.sun.java.swing" are moved to "javax.swing"

And your problem is solved

Original comment by gnadh2007 on 31 Jan 2012 at 9:54

GoogleCodeExporter commented 9 years ago
I downloaded the sources and replaced imports from com.sun.java.swing.* to 
javax.swing.* as pointed by gnadh2007. It seems fine in IDE (NetBeans) but can 
not compile the code (using Maven) with output:

com/seaglasslookandfeel/SeaGlassLookAndFeel.java:[164,21] error: cannot find 
symbol
com/seaglasslookandfeel/SeaGlassLookAndFeel.java:[165,21] error: cannot find 
symbol
com/seaglasslookandfeel/SeaGlassLookAndFeel.java:[401,16] error: cannot find 
symbol
com/seaglasslookandfeel/SeaGlassLookAndFeel.java:[405,16] error: cannot find 
symbol

referring to lines:

import sun.swing.plaf.GTKKeybindings;
import sun.swing.plaf.WindowsKeybindings;

in SeaGlassLookAndFeel.java.

What is wrong ?

Original comment by reviv...@gmail.com on 5 Mar 2012 at 11:24

GoogleCodeExporter commented 9 years ago
I don't know what is wrong.

Original comment by kahuxtable on 6 Mar 2012 at 4:59

GoogleCodeExporter commented 9 years ago
Please someone post a way to make seaglass work with jdk7 step by step

Original comment by shabab.h...@gmail.com on 6 Mar 2012 at 12:12

GoogleCodeExporter commented 9 years ago
Hi!

While trying to fix this working under Java 7, I found something. I opened 
sources in NetBeans and started changing "com.sun.java.swing" to "javax.swing" 
and "sun.swing.plaf.synth.SynthUI" to "javax.swing..." etc.

Then I found in SeaGlassComboBoxUI that (on row 411) protected function 
getSizeForComponent(Component comp) is being overwriten => error => I'm not 
able to use it with Java 7.

Could you please fix this LAF for using with J7? I't so beautiful :)

Original comment by letal.vo...@gmail.com on 30 Mar 2012 at 8:32

GoogleCodeExporter commented 9 years ago
Issue 90 has been merged into this issue.

Original comment by kahuxtable on 28 Apr 2012 at 2:13

GoogleCodeExporter commented 9 years ago
Jika anda menggunakan IDE Netbeans dan menginstall JDK 1.6, klik kanan pada 
projek anda kemudian pilih properties, pada tab Library, pilih Java Platform 
pada pilihan JDK 1.6
#If you use Netbeans IDE and have been installed JDK 1.6, right click on ur 
project, then choose properties, on Library, select JDK 1.6 in Java Platform 
Choice.

Original comment by mail.ard...@gmail.com on 20 Jun 2012 at 5:05

GoogleCodeExporter commented 9 years ago
I can't believe I can't find a SeaGlass .jar that is WORKING with java 7 !!! 
Does anyone have a link where I can find it ? I've been looking or 1 hour now 
and all I can find is crap...

Original comment by sobol...@gmail.com on 21 Jun 2012 at 4:53

GoogleCodeExporter commented 9 years ago
Fixed in version 0.2, which was just released.

Original comment by kahuxtable on 24 Jun 2012 at 2:17

GoogleCodeExporter commented 9 years ago
Issue 89 has been merged into this issue.

Original comment by kahuxtable on 24 Jun 2012 at 2:18