Giter Club home page Giter Club logo

Comments (17)

zapbot avatar zapbot commented on May 22, 2024
Simply fixed by removing the string in the sh file.

java -classpath lib/commons-codec-1.2.jar:lib/commons-collections-3.1.jar:lib/commons-configuration-1.1.jar:lib/commons-httpclient-3.0.jar:lib/commons-lang-2.0.jar:lib/commons-logging-api.jar:lib/commons-logging.jar:lib/hsqldb.jar:lib/jh.jar:lib/js.jar:lib/log4j-1.2.8.jar:lib/zaphelp.jar:zap.jar
org.zaproxy.zap.ZAP

Original issue reported on code.google.com by ian.paine on 2010-09-28 21:56:05

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
Hi Ian,

Did you install ZAP on Backtrack 4 RC1 yourself?
As I'm sure you realize its a classpath problem.
The zap.jar and all of the jars in the lib directory need to be on the classpath for
it to run.
Can you now run ZAP on Backtrack?

Many thanks,

Psiinon 

Original issue reported on code.google.com by psiinon on 2010-09-29 06:10:37

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
Yes, the simple issue was down to the RC variable in the sh file, although makes the
sh file a little more readable it did not work on BT4 RC1(?!). I just moved the classpath
into the command and now it works. Bit of an odd one, but I guess that this should
be a more generic fix.

See attached.

Original issue reported on code.google.com by ian.paine on 2010-09-29 08:01:44


- _Attachment: [zap.sh](https://storage.googleapis.com/google-code-attachments/zaproxy/issue-5/comment-3/zap.sh)_

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
OK, I've just looked into this a little more, it was late last night when I looked at
it.

If you declare the var as lower case it'll work also.

Original issue reported on code.google.com by ian.paine on 2010-09-29 08:30:02


- _Attachment: [zap.sh](https://storage.googleapis.com/google-code-attachments/zaproxy/issue-5/comment-4/zap.sh)_

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
Thats weird!
But if it works, who am I to complain.
I'll change it to use lower case.

Thanks for your help!

Psiinon

Original issue reported on code.google.com by psiinon on 2010-09-29 18:52:58

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
just a shell-script issue (special characters in your shell script)

just do a:
dos2unix zap.sh
sh zap.sh

...windows text editors ;-)

/brtw2003



Original issue reported on code.google.com by brtw2003 on 2010-10-05 20:49:20

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
Running:

dos2unix zap.sh

worked for me.

Is anyone else have any problems that are not fixed by this?
I'll check the new file soon, but leave the issue open in case anyone has any similar
problems.

Good spot brtw2033 :)

Psiinon

Original issue reported on code.google.com by psiinon on 2010-10-06 11:21:56

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
dos2unix zap.sh

Fixed the problem for me too!

Original issue reported on code.google.com by rene.purcell on 2010-10-06 15:18:17

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
I've added a new file here: http://code.google.com/p/zaproxy/downloads/detail?name=zap_1.0.0b.sh

Does this now work for everyone?

Thanks

Original issue reported on code.google.com by psiinon on 2010-10-07 12:01:33

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
I've just downloaded
ZAP_1.0.0b_installation.tar.gz       ZAP 1.0.0 Cross Platform Installation (with fix
for issue 1)
which i believe includes above fix?

Having same problem, granted +x to zap.sh and tried var as lowercase.  Same thing

i.e.

cp="lib/commons-codec-1.2.jar:lib/commons-collections-3.1.jar:lib/commons-configuration-1.1.jar:lib/commons-httpclient-3.0.jar:lib/commons-lang-2.0.jar:lib/commons-logging-api.jar:lib/commons-logging.jar:lib/hsqldb.jar:lib/jh.jar:lib/js.jar:lib/log4j-1.2.8.jar:lib/zaphelp.jar:zap.jar"



java -classpath $cp org.zaproxy.zap.ZAP

Original issue reported on code.google.com by yeleek on 2010-10-07 12:40:16

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
For what its worth - writing own script from scratch and its fine.

Original issue reported on code.google.com by yeleek on 2010-10-07 12:45:19

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
No, I'm afraid it doesnt contain this fix.
You can either download the fix  http://code.google.com/p/zaproxy/downloads/detail?name=zap_1.0.0b.sh
or run dos2unix on zap.sh

Thanks

Original issue reported on code.google.com by psiinon on 2010-10-07 13:19:00

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
I'm running Gentoo. I've tried each of the following with no success in starting up
zap using either the downloaded 1.0.0b or source from SVN.  I have checked that my
zap.sh file is in UNIX format, so that is not the issue.

$ eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea6-bin  system-vm user-vm
  [2]   sun-jdk-1.6 
  [3]   sun-jre-bin-1.6 

My actual error is mildly different, so perhaps something else is afoot:

Exception in thread "main" java.lang.NoClassDefFoundError: org/zaproxy/zap/ZAP
Caused by: java.lang.ClassNotFoundException: org.zaproxy.zap.ZAP
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.zaproxy.zap.ZAP. Program will exit.

Original issue reported on code.google.com by bill.e.ghote on 2010-11-08 11:10:39

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
Please disregard my comment 13.  Issue was resolved, mostly by ensuring sufficient coffee.

Original issue reported on code.google.com by bill.e.ghote on 2010-11-08 11:35:29

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
Hey, I 'll have to try that myself more often :)

Original issue reported on code.google.com by psiinon on 2010-11-08 11:36:34

from zaproxy.

zapbot avatar zapbot commented on May 22, 2024
Fixed in 1.1.0

Original issue reported on code.google.com by psiinon on 2010-12-04 11:01:01

from zaproxy.

lock avatar lock commented on May 22, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from zaproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.