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 8442265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:48:19+00:00 2026-06-10T08:48:19+00:00

I have a bunch of jars in a shared (Windows) network drive. I would

  • 0

I have a bunch of jars in a shared (Windows) network drive. I would like to refer those jars using java -classpath /network/drive/path/* myClass. I will be running this command from an applescript so I have tried something like below-

 do shell script "java -classpath smb://user:pass@server/shared/jars/* myClass"

but it doesn’t seem to work, is there a way to do it rather than having a whole bunch of jar files in the local machine or inside the Application package?

The above works on a Windows batch script like

java -classpath S:\shared\jars\* myClass
  • 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-06-10T08:48:21+00:00Added an answer on June 10, 2026 at 8:48 am

    Your Windows example is not really a fair comparison, as there you have clearly mapped a drive letter to the network path which you then use with your Java command. The equivalent on Mac OS is to mount a network volume, which you can do through Finder -> Go -> Connect to server, or via AppleScript using the mount volume command. Either way, if you mount smb://user:pass@server/shared you can then access its contents under the path /Volumes/shared:

    do shell script "java -classpath /Volumes/shared/jars/\\* myClass"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a path that looks like this <path id=classpath-ant> <fileset dir=${lib-ant-dir}> <include name=**/*.jar
I would like to have Maven download the JARs listed in a pom.xml file.
I have an EAR file with a bunch of JARs in it, and one
I have bunch of strings, some of which are fairly long, like so: movie.titles
I have bunch of lists like this: out[3] [[3]] [1] forum=28&mid=11883 [2] forum=29&mid=11884 out[4]
I have a bunch of code in a routine that looks a bit like
I have bunch of Symbol MC 70 devices. They run Windows Mobile 5. Most
lets say I have bunch of hyperlinks. When link is clicked, I'd like an
I have a bunch of .java files in a src folder that depend on
We have a bunch of Java EE applications based on open source frameworks such

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.