LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-08-2013, 12:31 AM   #1
n.nagar
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Rep: Reputation: Disabled
Aborted Core Dump Error using jar file


Hi All

I have created a .sh(script) file which executes a jar file.

When i run the sh file from command prompt, i am able to execute my jar file. But when i try to do it with the help of launcher it throws an aborted core dump error.

Can anyone help me out why i am facing the issue i tried using -Xmx and -Xms but with no success.

Any help will be appreciated


Regards
Naveen
 
Old 08-10-2013, 12:53 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
without knowing what this "launcher" is
there is not much anyone can do .
is this "launcher" a custom wrote *.desktop" file you wrote
or one that "À la carte" made

if so what is in it ?
what did you do to run the shell script , or extract the jar
 
Old 08-11-2013, 11:27 PM   #3
n.nagar
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
without knowing what this "launcher" is
there is not much anyone can do .
is this "launcher" a custom wrote *.desktop" file you wrote
or one that "À la carte" made

if so what is in it ?
what did you do to run the shell script , or extract the jar

Hi John

Launcher is "A la carte" made. Its a normal launcher created with the help of right click of mouse on desktop.

I have created a launcher to execute a script file when i double click on it. The script itself executes a jar which has used swings which creates a GUI.

My sh script runs fine when i execute it on gnome-terminal with the help of ./(script_name).sh command but when i do it with launcher it throws Aborted core dump error


Regards
Naveen
 
Old 08-12-2013, 12:14 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
that's the problem a possible malformed auto generated *.desktop file
and likely a miss configured shell script

when you double click it you do NOT need the rest of the needed code
this is an example for a program i use , a custom hacked version of Celestia

-- do to the needed hack, i need to run this program from the folder the exec is in , that issue causes a desktop file and menu item problems

two things
a shell script
then the desktop file

the shell script needs to cd to the folder the program is in !!!!!
-- that is needed ---
"QT4.Celestia5229.SVN.sh"
--- shell --
Code:
 #!/bin/sh

cd /DATA/SUSE12/bin/
 ./QT4.celestia.SVN5229
then the desktop file for this shell script
"QT4.CelestiaSVN5229.desktop"
Code:
[Desktop Entry]
Categories=Astronomy;Education;Science;
Comment=3d Space Sim
Exec=/DATA/SUSE12/bin/QT4.Celestia5229.SVN.sh
GenericName= 3D Space Sim.
Icon=/DATA/SUSE12/share/pixmaps/splash.png
MimeType=
Name=QT4.Celestia5229.SVN
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

the shell has to cd to the folder FIRST
then run the program
now your desktop file will be a bit different ( this is a KDE4 file)
and it needs to point to the shell script as the "exec" file
 
Old 08-12-2013, 01:09 AM   #5
n.nagar
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi John

I tried in the same approach as provided by you but to no success.

shell
code:

#!/bin/sh

cd /home/user/Desktop/Testing
java -jar -Xss10m simplejar.jar


Desktop File

code:

[Desktop Entry]
Categories=Application;
Comment=Script
Exec=/home/user/Desktop/Testing/script.sh
GenericName= Script.
Icon=/usr/share/pixmaps/apple-red.png
MimeType=
Name=script
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
Version=1.0


I Suppose my sh file and jar are correct because when i try to run it with terminal using ./script.sh command it executes fine. The problem only occurs when i double click the sh file or run it with launcher.


Regards
Naveen
 
Old 08-12-2013, 01:29 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
try this in the shell script
Code:
#!/bin/sh

cd /home/user/Desktop/Testing
java -jar -Xss10m ./simplejar.jar
( missing the "./" )

mind you you might have problems when running programs on the desktop
-- Linux is not windows --


some desktop manages will not allow you to do that ,others can cause odd things to happen


you are better off just using the Desktop folder as decoration and for launchers

just use your home folder

Last edited by John VV; 08-12-2013 at 01:31 AM.
 
Old 08-12-2013, 01:50 AM   #7
n.nagar
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi John

I tried moving it to home directory and run the script from there only but with no success
Its seems really weird as my script execution runs fine with command but not with double click



Regards
Naveen
 
Old 08-12-2013, 12:55 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Its seems really weird as my script execution runs fine with command but not with double click
is that a typo ?
I thought it WAS working on a double click


if not ("script.sh" is a bit of a bad name ,pick something a bit more descriptive )

cd to the location of the scriptand run
Code:
chmod +x script.sh
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Core Dump on Solaris (Question about core file) dayalan_cse Solaris / OpenSolaris 5 12-29-2014 07:56 AM
Aborted Core Dump Error n.nagar Red Hat 1 08-08-2013 01:45 AM
Error message "Jar file 'mail.jar' was not found in the extended library directory" AussieAndrew Linux - Newbie 1 07-17-2013 01:40 PM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 04:23 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration