Go Back   Champions of Regnum > English > The Inn

The Inn A place to gather around and chat about almost any subject

Reply
 
Thread Tools Display Modes
Old 04-19-2010, 05:26 AM   #61
Kyrottimus
Baron
 
Kyrottimus's Avatar
 
Join Date: Apr 2009
Location: Montana, U.S.A.
Posts: 690
Kyrottimus will become famous soon enough
Default

Quote:
Originally Posted by ArcticWolf View Post
Let me see, this seems to be a problem at line 54 in Configuracion.java regarding file creation or access. Could you please run the app from the console and paste the errors?

Additionally, try doing chmod +rw -R ./ in the app folder
Uhh....what?

Console? Is that like the terminal? And where am I supposed to put these files? Im a linux noob and don't know this stuff

I tried that command in termainal (chmod +rw -R ./RO_MAP/RO_MAP.jar) and it just returned the line with no message at all.

I'm still uncertain how to even properly run this or where to put the files... -.-''
__________________
Μολὼν λαβέ
Kyrottimus: 60 - Barbarian (WM) RIP || Rykor: 60 - Knight (WM) RIP
Vanosen Sagesight: 60 - Marksman (WM) RIP || Orykus: 60 - Hunter RIP
Kyrottimus no ha iniciado sesión   Reply With Quote
Old 04-20-2010, 03:22 AM   #62
ArcticWolf
Duke
 
ArcticWolf's Avatar
 
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
ArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of light
Default

Quote:
Originally Posted by Kyrottimus View Post
Uhh....what?

Console? Is that like the terminal? And where am I supposed to put these files? Im a linux noob and don't know this stuff

I tried that command in termainal (chmod +rw -R ./RO_MAP/RO_MAP.jar) and it just returned the line with no message at all.

I'm still uncertain how to even properly run this or where to put the files... -.-''
Yes, console == command line == terminal. It has several names.

The command you ran changes the permissions for all the files inside the folder. You should do something like chmod +rw -R ./RO_MAP so it changes the permissions to read and write.

Then you should run the program by typing java -jar ./RO_MAP/RO_MAP.jar. It will most certainly fail again, but that way I can see the error logs (it will write a lot of text to the console, copy and paste it here).

The app may be failing because of
  1. lacking a configuration file;
  2. not having permissions to create or modify the configuration file;
  3. a missing library doesn't let the parser read the file.
  4. <insert something else I may be missing here>

That's why I need the error logs.
__________________
I don't have a solution, but I admire the problem.
ArcticWolf no ha iniciado sesión   Reply With Quote
Old 04-20-2010, 06:25 AM   #63
Kyrottimus
Baron
 
Kyrottimus's Avatar
 
Join Date: Apr 2009
Location: Montana, U.S.A.
Posts: 690
Kyrottimus will become famous soon enough
Default

Quote:
Originally Posted by ArcticWolf View Post
Yes, console == command line == terminal. It has several names.

The command you ran changes the permissions for all the files inside the folder. You should do something like chmod +rw -R ./RO_MAP so it changes the permissions to read and write.

Then you should run the program by typing java -jar ./RO_MAP/RO_MAP.jar. It will most certainly fail again, but that way I can see the error logs (it will write a lot of text to the console, copy and paste it here).

The app may be failing because of
  1. lacking a configuration file;
  2. not having permissions to create or modify the configuration file;
  3. a missing library doesn't let the parser read the file.
  4. <insert something else I may be missing here>

That's why I need the error logs.

Here you go (yes, same error):

Code:
kyrottimus@kyrottimus-desktop:~$ chmod +rw -R ./RO_MAP
kyrottimus@kyrottimus-desktop:~$ java -jar ./RO_MAP/RO_MAP.jar
java.io.FileNotFoundException: /home/kyrottimus/files/config.xml (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:137)
	at java.io.FileInputStream.<init>(FileInputStream.java:96)
	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:87)
	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:178)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:847)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:826)
	at jtryicon.Configuracion.readXML(Configuracion.java:91)
	at jtryicon.Configuracion.<init>(Configuracion.java:42)
	at jtryicon.RoMap.<init>(RoMap.java:59)
	at jtryicon.RoMap.main(RoMap.java:918)
	at jtryicon.Main.main(Main.java:44)
kyrottimus@kyrottimus-desktop:~$
__________________
Μολὼν λαβέ
Kyrottimus: 60 - Barbarian (WM) RIP || Rykor: 60 - Knight (WM) RIP
Vanosen Sagesight: 60 - Marksman (WM) RIP || Orykus: 60 - Hunter RIP
Kyrottimus no ha iniciado sesión   Reply With Quote
Old 04-20-2010, 06:52 AM   #64
Kyrottimus
Baron
 
Kyrottimus's Avatar
 
Join Date: Apr 2009
Location: Montana, U.S.A.
Posts: 690
Kyrottimus will become famous soon enough
Default

Got it to work, I looked at that code message and just copied the "files" folder from RO_MAP and stuck it in my home/kyrottimus dir and ran the .jar again.

Got a couple other error messages but the window still comes up and it works fine after that.
__________________
Μολὼν λαβέ
Kyrottimus: 60 - Barbarian (WM) RIP || Rykor: 60 - Knight (WM) RIP
Vanosen Sagesight: 60 - Marksman (WM) RIP || Orykus: 60 - Hunter RIP
Kyrottimus no ha iniciado sesión   Reply With Quote
Old 04-20-2010, 11:48 AM   #65
ArcticWolf
Duke
 
ArcticWolf's Avatar
 
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
ArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of light
Default

As I expected, there's a file missing... Well, really it can't find the file because it's not looking at the right path. It's a bug in the app, not Ubuntu's fault. :P

It looks for this: /home/kyrottimus/files/config.xml
And that file should be in: /home/kyrottimus/RO_MAP/files/config.xml

It does so because the app looks at the "./" dir (current working directory). When you start the app it believes it's working on /home/kyrottimus/RO_MAP, while it's really in /home/kyrottimus/. You can fix this making a startup script:

Code:
#!/bin/bash
cd /home/kyrottimus/RO_MAP/
java -jar ./RO_MAP.jar
Copy and paste the code above to a file called start_ro_map.sh (or whatever you want). Give it execution rights (chmod +x start_ro_map.sh) and everything should be working fine.

I'm trully sorry for the inconvenience.
__________________
I don't have a solution, but I admire the problem.
ArcticWolf no ha iniciado sesión   Reply With Quote
Old 04-20-2010, 03:35 PM   #66
Kyrottimus
Baron
 
Kyrottimus's Avatar
 
Join Date: Apr 2009
Location: Montana, U.S.A.
Posts: 690
Kyrottimus will become famous soon enough
Default

Quote:
Originally Posted by ArcticWolf View Post
As I expected, there's a file missing... Well, really it can't find the file because it's not looking at the right path. It's a bug in the app, not Ubuntu's fault. :P

It looks for this: /home/kyrottimus/files/config.xml
And that file should be in: /home/kyrottimus/RO_MAP/files/config.xml

It does so because the app looks at the "./" dir (current working directory). When you start the app it believes it's working on /home/kyrottimus/RO_MAP, while it's really in /home/kyrottimus/. You can fix this making a startup script:

Code:
#!/bin/bash
cd /home/kyrottimus/RO_MAP/
java -jar ./RO_MAP.jar
Copy and paste the code above to a file called start_ro_map.sh (or whatever you want). Give it execution rights (chmod +x start_ro_map.sh) and everything should be working fine.

I'm trully sorry for the inconvenience.
Thanks, that works better than just moving the files folder.
__________________
Μολὼν λαβέ
Kyrottimus: 60 - Barbarian (WM) RIP || Rykor: 60 - Knight (WM) RIP
Vanosen Sagesight: 60 - Marksman (WM) RIP || Orykus: 60 - Hunter RIP
Kyrottimus no ha iniciado sesión   Reply With Quote
Old 05-04-2010, 09:37 AM   #67
Innopeor
Pledge
 
Innopeor's Avatar
 
Join Date: Aug 2009
Posts: 15
Innopeor is on a distinguished road
Default

Quote:
Originally Posted by Miraculix View Post
Tested, works fine.

I wonder if it's possible to have a wallpaper image with this embedded that would update itself. The idea is to have it as a wallpaper, not as a separate application running.

http://regnum-online.de/goodies/status2.gif
http://regnum-online.de/goodies/useronline2.gif

Is it somehow possible?
If you use KDE as desktop environment, that would be possible as plasmoid.

1) Install "Scripted HTML"
2) Create a new file with *html extension, and copy&paste these lines of code in it:

HTML Code:
<html>
  <head>
  </head>
  <body>
<img src="http://regnum-online.de/goodies/status8.gif" />
  <br>
  <img src="http://regnum-online.de/goodies/useronline8.gif" width="130" height="60">
  </body>
</html>
3) Add the plasmoid "Scripted HTML" to the desktop, go into its settings and give it the path of html page you made before.

That's all

Result: http://img88.imageshack.us/img88/3717/schermata2f.png
Innopeor no ha iniciado sesión   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:02 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved