mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
improved version of the linux startup script
This commit is contained in:
Vendored
+48
-59
@@ -1,61 +1,50 @@
|
||||
#!/bin/sh
|
||||
|
||||
APPDIR=$(dirname "$0")
|
||||
|
||||
# as of 0109, now using all relative paths and doing a cd to the
|
||||
# processing folder on run, because there are too many dependencies
|
||||
# in the folder. using $APPDIR as a prefix for all these things can
|
||||
# help, but doesn't work in cases where there are spaces in the name
|
||||
# of the folder that contains processing itself.
|
||||
|
||||
CLASSPATH=java/lib/rt.jar:lib:lib/build:lib/pde.jar:lib/core.jar:lib/antlr.jar:lib/oro.jar:lib/registry.jar:lib/mrj.jar:lib/tools.jar
|
||||
#!/bin/sh
|
||||
|
||||
APPDIR="$(dirname -- "${0}")"
|
||||
|
||||
for LIB in \
|
||||
java/lib/rt.jar \
|
||||
lib \
|
||||
lib/build \
|
||||
lib/*.jar \
|
||||
;
|
||||
do
|
||||
CLASSPATH="${CLASSPATH}:${APPDIR}/${LIB}"
|
||||
done
|
||||
export CLASSPATH
|
||||
|
||||
# put the directory where this file lives in the front of the path,
|
||||
|
||||
# put the directory where this file lives in the front of the path,
|
||||
# because that directory also contains jikes, which we will need at runtime.
|
||||
#
|
||||
#PATH=`pwd`/`dirname $0`:`pwd`/java/bin:${PATH}
|
||||
#PATH=$APPDIR:$APPDIR/java/bin:${PATH}
|
||||
#echo $PATH
|
||||
PATH=.:java/bin:${PATH}
|
||||
export PATH
|
||||
|
||||
# test to see if jikes is operable. i'm a crappy bash scripter
|
||||
# so if someone knows a more elegant way to do this, let me know.
|
||||
#
|
||||
#echo $APPDIR/jikes
|
||||
"$APPDIR/jikes" -version 1> /dev/null 2> /dev/null
|
||||
# if stmt modified as per bug #373
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
# need to cd to the dir because subfolders like lib et al need to be ready
|
||||
cd "$APPDIR" && java processing.app.Base
|
||||
else
|
||||
echo
|
||||
echo It appears that the version of Jikes distributed with Processing
|
||||
echo cannot properly run on this system.
|
||||
echo
|
||||
echo Possible solutions:
|
||||
echo
|
||||
echo + If you already have Jikes installed on your system, you may
|
||||
echo just need to remove the version that is included with Processing.
|
||||
echo
|
||||
echo + You probably just need to track down a version of Jikes that will
|
||||
echo work with your distribution.
|
||||
echo
|
||||
echo + You may need to install the rpm/package for compat-libstdc++
|
||||
echo This is what it takes to get things running on most versions
|
||||
echo of RedHat Linux or Fedora Core.
|
||||
echo
|
||||
echo + If all else fails, or if you just like building stuff yourself,
|
||||
echo you can download the source for Jikes from SourceForge:
|
||||
echo http://sourceforge.net/project/showfiles.php?group_id=128803
|
||||
echo And it just takes a simple ./configure and make, followed by
|
||||
echo copying src/jikes to the processing-XXXX folder and you should
|
||||
echo be all set.
|
||||
echo
|
||||
echo If you get stuck, ask questions online from the helpful folks via
|
||||
echo the Processing discussion board: http://processing.org/discourse/
|
||||
echo
|
||||
echo Good luck!
|
||||
fi
|
||||
export PATH="${APPDIR}:${APPDIR}/java/bin:${PATH}"
|
||||
|
||||
if jikes -version > /dev/null 2> /dev/null
|
||||
then
|
||||
java processing.app.Base
|
||||
else
|
||||
echo "It appears that the version of Jikes distributed with Processing
|
||||
cannot properly run on this system.
|
||||
|
||||
Possible solutions:
|
||||
|
||||
+ If you already have Jikes installed on your system, you may
|
||||
just need to remove the version that is included with Processing.
|
||||
|
||||
+ You probably just need to track down a version of Jikes that will
|
||||
work with your distribution.
|
||||
|
||||
+ You may need to install the rpm/package for compat-libstdc++
|
||||
This is what it takes to get things running on most versions
|
||||
of RedHat Linux or Fedora Core.
|
||||
|
||||
+ If all else fails, or if you just like building stuff yourself,
|
||||
you can download the source for Jikes from SourceForge:
|
||||
http://sourceforge.net/project/showfiles.php?group_id=128803
|
||||
And it just takes a simple ./configure and make, followed by
|
||||
copying src/jikes to the processing-XXXX folder and you should
|
||||
be all set.
|
||||
|
||||
If you get stuck, ask questions online from the helpful folks via
|
||||
the Processing discussion board: http://processing.org/discourse/
|
||||
|
||||
Good luck!"
|
||||
fi
|
||||
|
||||
@@ -9,9 +9,15 @@ X applet export with multiple jars having trouble (related?)
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=701
|
||||
X applet export fails with opengl/code folder
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=714
|
||||
X synchronized (something) { } is horking up the preproc
|
||||
X http://dev.processing.org/bugs/show_bug.cgi?id=136
|
||||
o inside the preproc
|
||||
o change the arrays of default imports (now using 1.5+, so no 1.1,1.3,1.4)
|
||||
X don't bother, they're cumulative
|
||||
X improvements to the linux startup script
|
||||
X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_core_pde;action=display;num=1202689238
|
||||
|
||||
_ synchronized (something) { } is horking up the preproc
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=136
|
||||
_ two-tiered dialogs for everything - use osx style throughout
|
||||
|
||||
_ disallow .java tabs with same name as the sketch
|
||||
_ a .java tab with same name as the sketch is allowed (oog!)
|
||||
@@ -24,9 +30,9 @@ _ rename main tab (sketch) to "something" (without ".java")
|
||||
_ the contents in the files are not the same, but the main-tab is
|
||||
_ showing the contents of the .java tab, so if you press save
|
||||
_ you will overwrite your original code from the main-tab.
|
||||
|
||||
_ inside the preproc
|
||||
_ change the arrays of default imports (now using 1.5+, so no 1.1,1.3,1.4)
|
||||
_ after fixing name of sketch, ensure sketch of that name does not exist
|
||||
_ put the "had to rename sketch" message in the msg bar
|
||||
_ it's ugly/annoying/intrusive
|
||||
|
||||
_ prompt user before nuking applet or application folders
|
||||
_ along with a "don't ask me later"
|
||||
@@ -37,16 +43,14 @@ _ http://dev.processing.org/bugs/show_bug.cgi?id=61
|
||||
_ update preferences.txt whenever opening/closing
|
||||
_ otherwise recovery from restart can be annoying
|
||||
|
||||
_ improvements to linux script for debian
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=596
|
||||
_ more info on the script
|
||||
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_core_pde;action=display;num=1202689238
|
||||
|
||||
_ make.sh creating work/lib dirs.. no longer necessary?
|
||||
_ don't copy hidden files (.svn especially) on export/save as
|
||||
|
||||
_ make .java files and friends go to correct locations on export (app)
|
||||
|
||||
_ on first OutOfMemoryError, offer to send to the docs
|
||||
_ again, a warning checkbox
|
||||
|
||||
_ native lib stuff, use native.txt in lib folder, then:
|
||||
_ String osName = System.getProperty("os.name");
|
||||
_ String osArch = System.getProperty("os.arch");
|
||||
@@ -186,12 +190,6 @@ _ "Fatal exception occurred. Program will exit." on startup
|
||||
_ seems to be font related, deleting prefs will fix it
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=688
|
||||
|
||||
_ "missing a /* from the end of a comment" message
|
||||
_ enter a bug for this, it's bound to be found
|
||||
_ "multipart/*" produces the error
|
||||
_ even though things are inside a quoted txt block
|
||||
|
||||
_ after fixing name of sketch, ensure sketch of that name does not exist
|
||||
_ quicktime problems (when no QTJAVA is set?)
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=669
|
||||
|
||||
@@ -210,14 +208,9 @@ _ discuss i18n issues and proper system
|
||||
_ look through 404 issues on the site
|
||||
|
||||
_ mark examples as untitled (rather than read-only)
|
||||
_ put the "had to rename sketch" message in the msg bar
|
||||
_ it's ugly/annoying/intrusive
|
||||
_ inside sketch.java, don't hardwire the file extension types
|
||||
_ arduino uses .c, .cpp, .h instead of .java
|
||||
|
||||
_ if someone has monaco disabled in font book, the app won't start
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=562
|
||||
|
||||
_ can't get documents/prefs folder on vista
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=585
|
||||
_ vista disables aero theme when p5 is run
|
||||
@@ -721,18 +714,22 @@ _ http://dev.processing.org/bugs/show_bug.cgi?id=507
|
||||
_ syntax highlighting error with // and /*
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=609
|
||||
|
||||
_ "missing a /* from the end of a comment" message
|
||||
_ enter a bug for this, it's bound to be found
|
||||
_ "multipart/*" produces the error
|
||||
_ even though things are inside a quoted txt block
|
||||
|
||||
hacked for fix, needs real fix
|
||||
_ NullPointerException on unterminated comment at end of code
|
||||
_ and OutOfMemoryError and weird lockup
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=16
|
||||
_ also OutOfMemoryError if a quote is not terminated
|
||||
_
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=763
|
||||
_ preprocessor error if last line of code is a comment with no CR after it,
|
||||
_ an OutOfMemoryError wants to happen,
|
||||
_ but right now there's a hack to add a CR in PdePreprocessor
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=5
|
||||
|
||||
|
||||
PDE / Editor
|
||||
|
||||
_ sketch marked as modified too aggressively
|
||||
@@ -1299,6 +1296,8 @@ _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs
|
||||
|
||||
DIST / Mac OS X
|
||||
|
||||
_ if someone has monaco disabled in font book, the app won't start
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=562
|
||||
_ for the .app file, $APP_PACKAGE will give the path
|
||||
_ $JAVAROOT will give Contents/Resources/Java location
|
||||
_ we're breaking some mac human interface guidelines
|
||||
@@ -1322,6 +1321,9 @@ _ http://dev.processing.org/bugs/show_bug.cgi?id=539
|
||||
|
||||
DIST / Linux
|
||||
|
||||
_ improvements to linux script for debian
|
||||
_ http://dev.processing.org/bugs/show_bug.cgi?id=596
|
||||
_ these bits need to be checked to ensure that they work on other distros
|
||||
_ not being able to make a link to the processing app
|
||||
_ argh.. more path and shell issues..
|
||||
_ computationally intensive stuff runs really slow inside p5
|
||||
|
||||
Reference in New Issue
Block a user