Welcome! Log In Create A New Profile

Advanced

Only one window when I run reprap-host

Posted by bernard46 
Only one window when I run reprap-host
December 12, 2008 05:57PM
I run reprap-host with win XP and win Vista and Java sun 6. With both, when I run reprap-host V9 or V8, only one window is opening.

Is it because I haven't connect an Arduino ?

Here are errors :

Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Exception in thread "RepRap" java.lang.NullPointerException
at javax.swing.ImageIcon.(Unknown Source)
at org.reprap.gui.botConsole.PrintTabPanel.initComponents(Unknown Source
)
at org.reprap.gui.botConsole.PrintTabPanel.(Unknown Source)
at org.reprap.gui.botConsole.BotConsoleFrame.initComponents(Unknown Sour
ce)
at org.reprap.gui.botConsole.BotConsoleFrame.(Unknown Source)
at org.reprap.gui.botConsole.BotConsoleFrame$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Could you help me
Thanks
Re: Only one window when I run reprap-host
December 15, 2008 07:31AM
It is worth checking that you do have rr-logo-green-url.png in the botConsole folder.
Re: Only one window when I run reprap-host
December 15, 2008 09:48AM
Thanks for your answer.

This file (rr-logo-green-url.png) is not in my PC. But I dont know where I can find it, and what (where) is the "botConsole folder".
sid
Re: Only one window when I run reprap-host
December 15, 2008 11:00AM
here you are.

But that file is only necessary for the sourcecode afaik,
it's not packed with any precompiled host yet.

(not even packed in the jar at reprap.jar\org\reprap\gui\botConsole)

'sid

Edited 1 time(s). Last edit at 12/15/2008 11:02AM by sid.
Attachments:
open | download - rr-logo-green-url.png (6 KB)
Re: Only one window when I run reprap-host
December 15, 2008 11:33AM
Thanks for the file. I get it but I don't know what to do with and if I well understand, it's not origin of my errors.
sid
Re: Only one window when I run reprap-host
December 15, 2008 12:50PM
you're welcome.

Well I guess jonwise meant to place it in the named folder.
That folder does not exist in the compiled version;
only packed directly to reprap.jar
So either you can try creating such folder
that'd be "\reprap\gui\botConsole\rr-logo-url.png" inside the org folder you already have next to the reprap.jar

or you can try place that file directly inside the reprap.jar
that'd be "reprap.jar\org\reprap\gui\botConsole\rr-logo-url.png"
you can open and edit jar files with WinRar for example,
don't know if it works afterwards though, so keep a backup handy winking smiley

And yes, I doubt that this will solve your errors, but I cannot tell for sure.
So it wont harm to try grinning smiley

'sid
Re: Only one window when I run reprap-host
December 15, 2008 03:57PM
Hello,hot smiley

Thanks to Sid and to Jonwise because it was a good idea, I have used winjar to add file .jnp at reprap.jar and now 2 windows are openning. But, nothing is perfect never confused smiley, the bot console is not like the doc, I haven't the load buttons (blue, pink grey) and no error in console. I send you copy of this windows.

But i am not desesperate...
Attachments:
open | download - botconsole.jpg (37.8 KB)
sid
Re: Only one window when I run reprap-host
December 15, 2008 07:34PM
...And you will never have.

Not with your host software.

The picture you're looking for is a screenshot of the UPCOMING version of the host software, yet unreleased (you can get the sources and compile yourself though but it's still incomplete)

'sid
Re: Only one window when I run reprap-host
December 16, 2008 04:20AM
Thanks.

I will test this on the week end. I give you the r
Re: Only one window when I run reprap-host
December 23, 2008 04:59PM
I come back and I see there is a new reprap-host version . I had tested it and it look like in the doc. It's beautifull.
Thanks for all.
Re: Only one window when I run reprap-host
January 23, 2009 05:43PM
I am experiencing the same issue with Mac OS X Tiger. I followed the instructions from the wiki to install rxtx and the other java libraries into the /Libraries/Java/Extention folder.

AoI launches and runs as expected

launching reprap.jar only opens one window the viewer window.

Running the shell scripts produces the same result.

I made a folder

gui/botConsole and moved the png files into it. Makes no difference.


This is the console dump:
===== Friday, January 23, 2009 2:34:48 PM US/Pacific =====
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
Error opening port: /dev/ttyUSB0
Exception in thread "RepRap" java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
	at org.reprap.Main$9.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Do the FTDI drivers need to be installed for the console window to open?

I can view and spin the grid at will. I am not able to import any STL files.
Re: Only one window when I run reprap-host
February 20, 2009 04:12PM
bump

still have this issue

-julie
Re: Only one window when I run reprap-host
March 12, 2009 06:40PM
I'm getting the same errors as bernard46, but I can't seem to solve the problem. I'm trying to get an install from the LiveCD (0.6, I think) to work. I've checked out the latest from svn and I'm attempting to launch the application using the command "ant run". Here is the errors:

     [java] Stable Library
     [java] =========================================
     [java] Native lib Version = RXTX-2.1-7
     [java] Java lib Version   = RXTX-2.1-7
     [java] RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
     [java] Java 3D WARNING : reported GLX version = 1.2
     [java]     GLX version 1.3 or higher is required
     [java]     The reported version number may be incorrect.  There is a known
     [java]     ATI driver bug in glXQueryVersion that incorrectly reports the GLX
     [java]     version as 1.2 when it really is 1.3, so Java 3D will attempt to
     [java]     run anyway.
     [java] Exception in thread "RepRap" java.lang.NullPointerException
     [java]     at javax.swing.ImageIcon.(ImageIcon.java:138)
     [java]     at org.reprap.gui.botConsole.PrintTabFrame.initComponents(Unknown Source)
     [java]     at org.reprap.gui.botConsole.PrintTabFrame.(Unknown Source)
     [java]     at org.reprap.gui.botConsole.BotConsoleFrame.initComponents(Unknown Source)
     [java]     at org.reprap.gui.botConsole.BotConsoleFrame.(Unknown Source)
     [java]     at org.reprap.gui.botConsole.BotConsoleFrame$2.run(Unknown Source)
     [java]     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     [java]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
     [java]     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
     [java]     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
     [java]     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
     [java]     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
     [java]     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
     [java]     at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

I can't seem to figure out where to put this .png file. I already have it in the following locations:
~/projects/reprap/Reprap$find ./ -iname '*logo*.png'
./lib/rr-logo-green-url.png
./reprap-host-src-20081228/lib/rr-logo-green-url.png
./src/org/reprap/gui/botConsole/rr-logo-green-url.png
./reprap-host-src-20090131/lib/rr-logo-green-url.png

Any clues where I should put this?
Re: Only one window when I run reprap-host
March 12, 2009 09:38PM
In my impatientence I decided to find a way around this problem since I have no clue how to fix it. I edited ~/projects/reprap/Reprap/src/org/reprap/gui/botConsole/PrintTabFrame.java. I removed lines 221 and 222 which were:

getWebPage.setIcon(new javax.swing.ImageIcon(
    ClassLoader.getSystemResource("rr-logo-green-url.png"))); // NOI18N

I am still interested in a proper solution to this problem.
Sorry, only registered users may post in this forum.

Click here to login