Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mcdepp
PostPosted: Aug 29, 2007 - 01:13 PM
Newbie


Joined: Aug 29, 2007
Posts: 7


I inzipped avr32studio-1.0-linux.gtk.x86.zip to /usr/local/avr32studio and
made chown -R user *
When I started avr32studio with java 1.4.2 avr32studio started fine
but avr32 features were missing. So I installed sun-java-1.5

AVR32studio starts , I see the progress showing loading. But before
the GUI starts there is an error box:
An error has occurred. See the log file
/netsave/etch/local/avr32studio/workspace/.metadata/.log.

In the log-file I see:

eclipse.buildId=unknown
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.ui.workbench 4 0 2007-08-29 08:17:21.307
!MESSAGE Widget disposed too early!
!STACK 0
java.lang.RuntimeException: Widget disposed too early!
at org.eclipse.ui.internal.WorkbenchPartReference$1.widgetDisposed(WorkbenchPartReference.java:153)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:101)
...
# this stack comes 5 times
and then

!ENTRY org.eclipse.osgi 4 0 2007-08-29 08:17:21.510
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [NS_InitEmbedding /usr/lib/iceweasel error -2147221164]
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:225)
at com.atmel.avr32.AVR32StudioIntroPart.addWelcome(Unknown Source)
at com.atmel.avr32.AVR32StudioIntroPart.createPartControl(Unknown Source)
...

!ENTRY org.eclipse.osgi 2 0 2007-08-29 08:17:21.624
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2007-08-29 08:17:21.625
!MESSAGE Bundle update@plugins/org.eclipse.cdt.debug.mi.core_3.1.2.200702150621.jar [107] was not resolved.

!ENTRY org.eclipse.osgi 4 0 2007-08-29 08:17:21.766
!MESSAGE Error while stopping "org.eclipse.cdt.managedbuilder.core_3.1.2.200702150621".
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin.stop() of bundle org.eclipse.cdt.managedbuilder.core.
...

-----------------------------
The file org.eclipse.cdt.debug.mi.core_3.1.2.200702150621.jar is in the plugins directors.
Whats going wrong here ?
 
 View user's profile Send private message  
Reply with quote Back to top
squidgit
PostPosted: Aug 29, 2007 - 02:27 PM
Raving lunatic


Joined: Sep 14, 2003
Posts: 4228
Location: Queanbeyan, Australia

Multiple versions of java on a linux box can often hurt. Run
Code:
update-alternatives --config java
and make sure the correct jvm is selected.

When you say that the avr32 bits were missing with 1.4.2 how is that? I would have thought that it would either work or not to some extent, it seems odd that the only bits to fail would be the avr32 bits. Hmm..

-S.
 
 View user's profile Send private message  
Reply with quote Back to top
mcdepp
PostPosted: Aug 29, 2007 - 02:40 PM
Newbie


Joined: Aug 29, 2007
Posts: 7


tycho2:~# update-alternatives --config java

Es gibt 2 Alternativen, die »java« bereitstellen.

Auswahl Alternative
-----------------------------------------------
+ 1 /usr/local/lib/jdk/bin/java
* 2 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java

so sun-java-1.5.0-10 is active ( /usr/local/.. is java-1.4.2 )

With java-1.4.2 I had only features from com.atmel.avr32_1 and
com.atmel.avr32.doc_1. All features com.atmel.avr32.tool.* were
missing. That means you only could normal C/C++-Projects,
but no AVR32-Projects
 
 View user's profile Send private message  
Reply with quote Back to top
DudeMan
PostPosted: Aug 29, 2007 - 04:18 PM
Newbie


Joined: Aug 13, 2007
Posts: 3


Using Debian Etch as well....
Could not get Studio past the picture of a lady bug without an error window so.. I installed the Sun java as suggested in the forum and now AVR32 Studio will not even start up and I get the following message window:

JVM terminated. Exit code=127
/usr/bin/java
-Xmx384m
-jar startup.jar
-os linux
-ws gtk
-arch x86
-launcher /home/chris/avr32studio/avr32studio
-name Avr32studio
-showsplash 600
-exitdata 238000
-vm /usr/bin/java
-vmargs
-Xmx384m
-jar startup.jar

Tried the
Code:
update-alternatives --config java

and it said:
Code:
There is only one program that provides java
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java. Nothing to configure.


Spent days trying to get this to work... Aghhhhh (help)

Chris
 
 View user's profile Send private message  
Reply with quote Back to top
torkildr
PostPosted: Aug 30, 2007 - 12:09 AM
Hangaround


Joined: Aug 07, 2006
Posts: 300
Location: Trondheim, Norway

squidgit wrote:

When you say that the avr32 bits were missing with 1.4.2 how is that? I would have thought that it would either work or not to some extent, it seems odd that the only bits to fail would be the avr32 bits. Hmm..
-S.


Actually, it is not so strange. Most of Eclipse is written to support J2SE 1.4 and some plug-ins can even work with "lesser" configurations e.g. CDC 1.0. AVR32 Studio absolutely requires J2SE 1.5 as it uses generics and enums to name a few.

If the execution environment requirements specified for a plug-in are not met the plug-in will not load and nor will plug-ins depending on it.
 
 View user's profile Send private message  
Reply with quote Back to top
torkildr
PostPosted: Aug 30, 2007 - 12:14 AM
Hangaround


Joined: Aug 07, 2006
Posts: 300
Location: Trondheim, Norway

Do you have Firefox installed and does it work when used as a internal browser in a standard Eclipse installation? I've seen some reports that describe issues with Firefox+Debian+Eclipse.
 
 View user's profile Send private message  
Reply with quote Back to top
mcdepp
PostPosted: Aug 30, 2007 - 12:03 PM
Newbie


Joined: Aug 29, 2007
Posts: 7


Problem was that libgtkembedmoz.so doesnt ship with package
iceweasel but eg. witch package icedove, because it use embedded
mozilla.
So I can start avr32studio with following script:
#!/bin/bash
export MOZILLA_FIVE_HOME=/usr/lib/icedove
export LD_LIBRARY_PATH=/usr/lib/icedove:${LD_LIBRARY_PATH}
/usr/local/avr32studio/avr32studio &

There are only 2 problems:
I installed toolchain for ubuntu606 and there are versions 2.1
of avr32gdbproxy and avr32program and avr32studio
needs version 2.2.
Are there downloads of these versions available or have I to build
them by myself.
 
 View user's profile Send private message  
Reply with quote Back to top
mcdepp
PostPosted: Aug 30, 2007 - 12:10 PM
Newbie


Joined: Aug 29, 2007
Posts: 7


DudeMan wrote:
Using Debian Etch as well....
Could not get Studio past the picture of a lady bug without an error window so.. I installed the Sun java as suggested in the forum and now AVR32 Studio will not even start up and I get the following message window:

JVM terminated. Exit code=127
/usr/bin/java
-Xmx384m
-jar startup.jar
-os linux
-ws gtk
-arch x86
-launcher /home/chris/avr32studio/avr32studio
-name Avr32studio
-showsplash 600
-exitdata 238000
-vm /usr/bin/java
-vmargs
-Xmx384m
-jar startup.jar

Tried the
Code:
update-alternatives --config java

and it said:
Code:
There is only one program that provides java
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java. Nothing to configure.


Spent days trying to get this to work... Aghhhhh (help)

Chris


Can you execute java from commandline, like

java -version

Try to install icedove and the script I gave in previous post.
 
 View user's profile Send private message  
Reply with quote Back to top
DudeMan
PostPosted: Aug 30, 2007 - 03:27 PM
Newbie


Joined: Aug 13, 2007
Posts: 3


Tried the
java -version
and I get:

chris@debian1k:~$ java -version
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory


I'll find the script you mentioned and install icedove.

Thanks, chris
 
 View user's profile Send private message  
Reply with quote Back to top
mcdepp
PostPosted: Aug 30, 2007 - 03:46 PM
Newbie


Joined: Aug 29, 2007
Posts: 7


DudeMan wrote:
Tried the
java -version
and I get:

chris@debian1k:~$ java -version
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory


I'll find the script you mentioned and install icedove.

Thanks, chris


Try :

which java

result: /usr/lib/jvm/java-1.5.0-sun/bin/java

file `which java`
/usr/lib/jvm/java-1.5.0-sun/bin/java: symbolic link to `../jre/bin/java'

ldd `which java`

linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7ef3000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xb7eef000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7dbd000)
/lib/ld-linux.so.2 (0xb7f1c000)

So there is no libjli.so
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits