Bug 472800 - set_classpath fails if existing CLASSPATH has spaces
Summary: set_classpath fails if existing CLASSPATH has spaces
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jpackage-utils
Version: 13
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 527323 579113
TreeView+ depends on / blocked
 
Reported: 2008-11-24 18:15 UTC by Adam Goode
Modified: 2010-08-05 23:48 UTC (History)
1 user (show)

Fixed In Version: jpackage-utils-1.7.5-3.11.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-05 23:48:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to fix spaces in CLASSPATH (405 bytes, patch)
2008-11-24 21:08 UTC, Adam Goode
no flags Details | Diff

Description Adam Goode 2008-11-24 18:15:19 UTC
Description of problem:

When I use set_classpath "jarfile" from a script, and my existing CLASSPATH has spaces, the run command fails. This is probably because of line 70 in 
/usr/share/java-utils/java-functions:

  CLASSPATH=$LOCAL_CLASSPATH:$CLASSPATH



Version-Release number of selected component (if applicable):
jpackage-utils-1.7.5-1.6.fc10.noarch

How reproducible:
Always.

Steps to Reproduce:

$ cat my-script
#!/bin/bash
. /usr/share/java-utils/java-functions

MAIN_CLASS=MyCoolApp

set_classpath "mycoolapp"

run "$@"



$ export CLASSPATH="$HOME/my java project"

$ ./my-script
Exception in thread "main" java.lang.NoClassDefFoundError: project
Caused by: java.lang.ClassNotFoundException: project

Comment 1 Adam Goode 2008-11-24 21:08:08 UTC
Created attachment 324538 [details]
Patch to fix spaces in CLASSPATH

Comment 2 Bug Zapper 2008-11-26 05:52:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Adam Goode 2009-10-05 23:27:56 UTC
Still broken in jpackage-utils-1.7.5-3.8.fc12.noarch.

Comment 4 Bug Zapper 2009-11-16 09:38:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Adam Goode 2009-11-21 00:48:45 UTC
Still broken, and there is a patch. Could this be fixed?

Comment 6 Bug Zapper 2010-03-15 12:10:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Fedora Update System 2010-06-28 21:58:07 UTC
jpackage-utils-1.7.5-3.11.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/jpackage-utils-1.7.5-3.11.fc13

Comment 8 Deepak Bhole 2010-06-28 21:59:00 UTC
jpackage-utils-1.7.5-3.11.fc13 should fix this issue. Please let me know if you still encounter it.

Comment 9 Fedora Update System 2010-06-28 23:37:10 UTC
jpackage-utils-1.7.5-3.11.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update jpackage-utils'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/jpackage-utils-1.7.5-3.11.fc13

Comment 10 Adam Goode 2010-06-29 13:49:36 UTC
Seems to work, thanks!

Comment 11 Fedora Update System 2010-08-05 23:48:22 UTC
jpackage-utils-1.7.5-3.11.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.