Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6041487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:40:08+00:00 2026-05-23T06:40:08+00:00

Ok I give up – I dont have a lot of xp running java

  • 0

Ok I give up – I dont have a lot of xp running java from cmd line and I’ve been at this for a while, tried endless combinations and I am just frustrated so here we go.

I need to run a simple java app (with dependencies on a bunch of jars that then depend on some native libraries) from cmd line – I am in the bin folder when I try to run the following:

java -Djava.library.path="../lib" -cp ../jar;. MyMainClass

No matter the order (i understand the order counts!) this does not work, with different errors.

For example the version I have pasted above gives me a list of the cmd line params followed by:

-bash: myMainClass: No such file or directory

but MyMainClass.class is there in the bin folder from which I am running the stuff.

If I try this instead:

java -Djava.library.path="../lib" AlphaHHKernel_Tuning_Test -cp ../jar;.

I get:

Exception in thread "main" java.lang.NoClassDefFoundError: MyMainClass
Caused by: java.lang.ClassNotFoundException: MyMainClass
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
-bash: .: filename argument required
.: usage: . filename [arguments]

I’d like to understand how those attributes are supposed to be used (and get it to work in the process).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:40:08+00:00Added an answer on May 23, 2026 at 6:40 am

    in Unix specify classpath with a : delimiter, not ; as in Windows: -cp ../jar:.

    Also, you need to specify each jarfile, not just give it a directory full of jars.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Give this scenario: I have a cool graphic in Illustrator or Flash. The graphic
It give me this error : Undefined index: action in LINE : $act=$_POST['action']; <?php
Let give you the details of this rather odd issue. We have a very
Give this unix script, which is scheduled batch run: isql -U$USR -S$SRVR -P$PWD -w2000
To give some background on my issue: I have 3 tables called Products, Packages,
Give this xml structure: <store-fax-info> <store-info store-status=1 store-service-type=2> <store-guid>blah-blah-blah-blah</store-guid> <store-name>Avacados R Us</store-name> <phone>555-555-5555</phone> <fax>123-456-789</fax>
Please Give Me am example That have all of attribute of synset of a
To give a brief high-level, I have a search results page with custom nifty
I give lessons on the fundamentals of the Java programming language, to students who
Give this method here: public SomeClass(Throwable stackTrace) { super(); this.stackTrace = stackTrace; } How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.