Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to play an audio file in a java program I have written in Eclipse. Processing has a very good library for playing audio files which I would like to use in Eclipse. I have followed and completed the directions in this link:
https://processing.org/tutorials/eclipse/ to be able to write Processing java code in Eclipse. I am unclear how one goes about downloading and using Processing libraries in Eclipse. All ideas and links explaining how to download and use this java library: https://processing.org/reference/libraries/sound/index.html in Eclipse would be much appreciated! Thank you for your help!
You'd follow pretty much the same steps- add the library jar(s) to your classpath, and then use the classes in those jars.
For example, if you want to use the Processing library minim, you would simply download the zip file, and then extract the jars within to whatever directory you want. Then you'd right-click your project in eclipse, go to properties, then Java build path. Go to the libraries tab, then just select the minim jar(s) to add them to your classpath.
Then you can use the minim classes just like you can use any other Java library.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I'm learning spring before I learn spring-boot I wish to install spring from Spring.
I have downloaded and unzipped, I need help as to where to place the folder so I can start working using a import org.springframework.stereotype.Component on a Mac. I know this is trivial question but I haven't found an installation of this kind, majority of the tutorials use spring.io to generate a zip file, or use maven to do the installation.
Looks like you need to use a build tool like Maven or Gradle to have the ability to add Spring Core to your project.
otherwise, you need to download the jar file and add it to the classpath.
Firstly let me tell you about CLASSPATH, according to the oracle website The Classpath tells the JDK tool where to find third-party and user defined classes that are not extensions or part of the Java platform.
On a Mac you need to type echo $CLASSPATH to see if you have any CLASSPATH set up, if you have never worked with third party classes this will be blank.
To add to CLASSPATH run the following command in the terminal
export CLASSPATH=/Users/{Path} this will clear all the classpaths , if you want to add to existing classpath run export CLASSPATH={$CLASSPATH}:/Users/{Path}
You can find a detailed article on this topic here
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I want do program like here: https://www.youtube.com/watch?v=hP2x1fwYP6c&feature=youtu.be&t=359
and I would like to import org.apache.commons.codec.binary.Base64; but java unknown apache
Or do I have to upload a library?
Thank you
You need to add the Apache Commons Codec library to your project. You either need to download the *.jar file and add it to the project folder and project configuration or you let your build processor automatically download it.
See https://mvnrepository.com/artifact/commons-codec/commons-codec/1.9
Latest is version 1.15
This website provides a download link for the *.jar file as well as configuration settings for different build processors (Maven, Gradle, ...)
org.apache.commons.codec.binary.Base64 is not part of the default java language, it is part of a library.
To use it you have to put said library on the classpath.
If you use a build and dependency management tool like maven you can add it as dependency in the pom.xml file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I found an app called (TinyTelnet Client )it's an open-source telnet client for android. When I download the source files I only get the java files so I Downloaded the app and decompiled it with an app editor. I think this gave me the manifest and layout xml and res folder files that were not included In the source code. Now my question is. How can I use these files to open the project in android studio so I can modify and run the application ?
You need to ask authors to send you the source code, if it's really an open source project.
Nevertheless, you can find all information about android projects and compiling in official docs: https://developer.android.com/guide/
I bet, it will take a lot of time to build project correctly this way.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
When do we need to attach source to a jar?
Can we debug without attaching the source code?
Can we see the stacktrace line numbers without the source (AFIAK we can't)?
What is the best practice for local builds? Do we need the source code?
What about CI?
Can we leave the source code only for production release?
Thanks,
Omer
It's good practice to also publish the sources jar along with your binary jar in your internal (or external) Maven repository. It makes life of the developer that is working with your code much easier since they can see your comments / browse the codebase and be able to have all that at debug time. Now as you are saying even if the sources jar is not published, developers have ways around it primarily relying on their IDE. In Eclipse for instance you can install the Java Decompile plugin that would give you access to the code during debug time or on IntelliJ there is something similar without the need of installing a plugin.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I use eclipse to run my java code, but I want to make an application that won't use eclipse to run. I want to make it work as a portable stand alone application that only uses the libraries I need.
Right click on Projectfolder (in Eclipse) -> Export -> Java -> runnable JAR -> choose class with main method. Done ;)
I'm going to assume you mean to create a .exe file. for this you'll need a .jar file.
I'm not familiar with Eclipse I know that Netbeans makes the .jar file automatically once the code is compiled.
(For Netbeans)
This .jar file can be found in the dist folder. In case there is none see here to fix that.
In case Eclipse puts into a different folder I'd just look in all the folders related to the project until you find a file with a .jar extension.
Once you have the .jar file you'll need to run an application to change it from .jar to .exe , I would recommend Launch4j.
Here's a handy tutorial to help you with that application if you get stuck.
I know this isn't exactly the answer you're looking for but it's close! Hope this helps!