• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ina · Nov 04, 2011 at 07:26 AM · androidmacpluginsclassesjar

Location of PlaybackEngines/AndroidPlayer/bin on a Mac to find classes.jar ?

To quote from: http://unity3d.com/support/documentation/Manual/Plugins.html

"To do that first locate the classes.jar shipped with Unity Android. It is found under the installation folder (usually C:\Program Files\Unity\Editor\Data (on Windows) or /Applications/Unity (on Mac)) in a folder called PlaybackEngines/AndroidPlayer/bin. Then add that classes.jar file to the classpath used to compile the new activity. "

But, there isn't such a directory on Mac - at least, I can't find that in Applications/Unity ... does anyone know wherewhere to find classes.jar?

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lbalasubbaiahapps · Nov 04, 2011 at 01:18 PM 0
Share

hi ina we are not getting directly classes.jar file through in unity(playbackengine).we are tried first classes.jar file copy and paste some other place after you give that path.if you dont understand my language send me

avatar image bobbake4 · Nov 10, 2011 at 09:11 PM 0
Share

I am looking for this as well but cannot find it to link to my android project. Please if someone could just point to where the classes.jar file is located on a mac?

avatar image ina · Nov 15, 2011 at 07:08 AM 0
Share

I just took classes.jar from my PC/Windows..

avatar image ina · Nov 16, 2011 at 05:00 AM 0
Share

as @syclamoth explains below, it is actually inside Unity.app in that directory above, but you have to right click to expand "Show Package Contents" ... full path after that: /Applications/Unity/Unity.app/Contents/PlaybackEngines/AndroidPlayer/bin

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by syclamoth · Nov 15, 2011 at 07:13 AM

Right-click on your 'Unity.app' in the applications window, and select 'Show Package Contents'. This will expand the .app out into a small filesystem, in which you can find the files you are looking for.

This happens because applications on MacOS are evaluated by Finder as executables, but are actually folders which get special treatment- the actual executable is buried deep within the package (usually at Contents/MacOS/something). This allows a program to have all its required resources neatly packaged inside itself, without needing to do something convoluted like uncompressing a tarball of some kind at runtime.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ina · Nov 16, 2011 at 04:59 AM 0
Share

Wow, to think it was there the whole time! And I learned something a bit more about Mac, too - thank you!!

avatar image JHSV · Sep 10, 2013 at 08:45 PM 0
Share

But I can't access that file from within eclipse, which is what I'm using to add classes.jar to my project. How can I reveal the file from within eclipse on a Mac so I can add it to the project?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity does not stay on Android platform 0 Answers

"An Empty File Name Is Not Valid" Compiling Android on Mac After Update 0 Answers

Unity Remote 4 Problems, Android, Mac 1 Answer

Problems with Multiple Plugins 1 Answer

Unable to merge Android Manifests 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges