I am new to Linux.I dont know how to install Netbeans IDE in LInuxmint.
Please write your answers in steps.
Go to NetBeans website and download install script. Web app will determine what you are running, you need to pick which bundle you want. When you finish download do
$ chmod a+x jdk-8uXY-nb-8_0_2-linux-x64.sh
and execute it. It will install everything for you. XY is current version of JDK.
Follow these steps in terminal,first install jdk and then install these things
1)chmod +x ~/Downloads/jdk-8-nb-8-linux-*.sh
2)cd ~/Downloads && ./netbeans-8.0.2-linux.sh
Related
I have a Spring-boot project, where I am using the ffmpeg library, I am executing the ffmpeg commands through a ProcessBuilder(in the terminal/cmd) and everything works fine, because I have already installed the ffmpeg on my macOS. When I try to generate a jar and run it on an another machine, where ffmpeg is not installed, it is executed, everything works fine, except the ffmpeg comamnds. Is there any change to import the library to my maven project or somehow to use it?
Is it a good idea to add an external jar of the library?
Thank you in advance!
Is the server you're deploying to Mac (same as your desktop) or Windows/Linux? The reason I ask is because ffmpeg is a binary app and has to be compiled to the specific platform.
You could include ffmpeg in maven, but before it runs it will need to be compiled. I found one maven repository here, though I do not know how well this will work: https://mvnrepository.com/artifact/com.tagtraum/ffmpeg/4.0.0. You could also try compiling from source (particularly if there's some non-standard encoding/decoding you're trying to do), which is a much more involved installation.
What I would do is install ffmpeg through a separate installation package, ideally through the OS's package management system; for linux this would be something like:
(Ubuntu)
sudo apt-get install ffmpeg
(CentOS)
sudo yum install epel-release
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
sudo yum install ffmpeg ffmpeg-devel
More info on installation here:
https://www.ostechnix.com/install-ffmpeg-linux/
Sometimes these packages may be not be the latest or missing something you're trying to do, in which case you may need to compile from source.
Edit: You say you're using Windows. I'm not as familiar with deploying to Windows, but there are ffmpeg Windows packages available on this site (linked from the main ffmpeg page): https://ffmpeg.zeranoe.com/builds/ . I recommend installing separately rather than trying to package with your Java app. This page can help: https://windowsloop.com/install-ffmpeg-windows-10/
I’m not sure if Maven have a plug in for that, but I’d add a shell script to install ffmpeg, let’s call it resources/scripts/myscript.sh, in the script first validate it’s not installed already, then use wget to download what you need , install it , and continue with you app.
You can call this script from your app as the first thing to do
I've read a lot of troubleshooting for similar occurrences of this error, but what is causing it for this particular .jar?
https://download.cnet.com/android/nabin-bhandari/3260-20_4-10982661-1.html
It works on Windows, but when attempting to run the file on a raspbian (linux) system running java version 1.8.0_65 with the command java -jar Local\ Area\ Messenger\ Desktop.jar it throws the error about not being able to find or load the main class.
The MANIFEST.MF defines Main-Class: com.nabinbhandari.lam.Main and there doesn't appear to be any issues with case sensitivity.
What am I missing? Do I need to install something more than Java Runtime Environment?
Edit: In case it is not clear, I am not the developer of this file. I am simply a user trying to run the file. This question has nothing to do with Eclipse and I don't understand why people are linking to that other question. I am not running Eclipse. Please stop linking to that. Please examination the .jar file I have provided.
Edit 2: I have followed the instructions and in this answer:
https://stackoverflow.com/a/1238173/2407742
It gives the error no main manifest attribute, in test.jar
Is there something missing from my java runtime environment? It seems like nothing works.
The Local Area Network Messenger application was developed using JavaFX, which is not included in the Oracle Java build for Rasperry Pi. I had to reinstall Java and then openjfx by doing the following:
sudo apt-get purge openjdk-8-jre-headless
sudo apt-get install openjdk-8-jre-headless
sudo apt-get install openjdk-8-jre
sudo apt-get install openjfx
It runs fine now.
The solution to this was the following:
Close Eclipse/STS
Use a file explorer on your operating system to navigate to your workspace (In my case, I'm on Windows so I used Windows Explorer)
Delete the .metadata directory (or to be safe, copy the directory somewhere else to be safe, then delete it)
Restart Eclipse/STS
Is there a more improved answer than this? I don't want to look like I'm trying to boost my own reputation points, so if someone can provide a better answer then please do so.
I'm new to Java and Eclipse and I'm not sure what this error message means:
*An error occurred while installing the items session context was:
(profile=epp.package.java,
phase=org.eclipse.equinox.internal.p2.engine.phases.Install,
operand=null --> [R]com.sap.ide.support.feature_root.gtk.linux.x86_64
1.11.1, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.ChmodAction).
The action chmod failed - file
/opt/eclipse/collectSupportInformation.sh does not exist*
This happened while I was trying to install a ui tool. I've used Help->Install New Software before and it worked just fine then but now I'm getting this error no matter what I'm trying to install (I tried several different tools). What am I supposed to do?
I'm using Eclipse Luna on Ubuntu 14.04
I was having this issue on my mac. I got it working by moving the Eclipse app to the Applications folder (I was running it from Downloads).
Try the below steps:-
1) Restart your eclipse by using clean flag -> ./eclipse -clean
2) Turn off usage data collection by going to preference->usage data collection-> turn off
3) make sure the user who is running eclipse having read write permission to dir /opt/eclipse, or just execute the command chmod -R 777 /opt/eclipse (Once problem is resolved you can again change the proper mode, 777 is just for trying to fix the issue).
Hope it will help you to resolve the issue.Please update if you facing any issue to follow the above steps.
I've got something similar but under Windows 8.1 and the fix was to close the Eclipse IDE and then "Run as Administrator", then run the updates!
Try downloading full package through eclipse.org direct link instead of through Installer.
I had the same problem when I was "opening with Archiver" instead of saving first to disk. If first I save the tar.gz to disk, then untar it and run the eclipse-inst, all is fine
I am trying to install Eclipse.
> desktop-file-install eclipse.desktop
> Error on file "eclipse.desktop": Key file does not start with a group
>Name=Eclipse
>Type=Application
>Exec=/opt/eclipse/eclipse
>Terminal=false
>Icon=/opt/eclipse/icon.xpm
>Comment=Integrated Development Environment
>NoDisplay=false
>Categories=Development;IDE;
>Name[en]=Eclipse
What is wrong?
My Ubuntu version is 10.04 but I do not know if that plays any role here.
You need to add
[Desktop Entry]
to the top of your file--it's the group name that command is looking for.
See here for more information about desktop entries.
In order to install Eclipse you only need to have a working JDK installation and the unzip the eclipse bundle and finally execute eclipse.
To install OpenJDK from ubuntu repositories you can do this.
sudo apt-get install openjdk-6-jdk
OpenJDK7 does not seem to be in 10.04 repositories.
You can always install Oracle JDK manually but perhaps you should think about upgrading you ubuntu installation to the latest LTS release.
Try This option.
change permission for eclipse dir sudo chmode -R 755 -R /opt/eclipse.
Java Home
open gedit /home/[user]/.bashrc
Add that two line at the end .
export JAVA_HOME=/path/to/jdk1.(xx version)
export PATH=$PATH:$JAVA_HOME:$JAVA_HOME/bin
Update
As mentioned by #Allison
You need to add [Desktop Entry]
I tried to install jdk-6u23-linux-i586-rpm.binon Linux. I used sh jdk-6u23-linux-i586-rpm.binto run.
But I got following errors.
Is there issue with installer? or is there something I missed?
Run the rpm using -x option to get debug information. That shall help identifying the root cause.
Use sh -x jdk-6u23-linux-i586-rpm.bin to install the rpm and see what all operations does the shell performs.
Finally I figured it out. There was an issue in installation package, I downloaded jdk-6u23-linux-i586-rpm.bin and it works fine.