deploy java desktop application in netbeans - linux

I create a java desktop application in Netbeans and now I want to deploy to work as software in Linux but I am not very familiar with neat beans I used visual studio and mono to build applications for both Windows and Linux and both of them create your application in bin/release directory and now I want to know what is equivalent to visual studio/mono release in Netbeans.
Thank you

Go to the project folder. Inside that there is a folder named "dist" this contains the jar file. This is the java equivalent of .exe. You need to use that to run on linux(given that JRE is installed on Linux machine). In case of external libraies: the libraries exists in side the "lib" folder which resides inside the "dist" folder.

Related

Netbeans buiding Ant Project on Linux

There is a legacy project in our team, that has build.xml file, dist folder, nbproject etc in its project's folder structure. To build it on Linux machine they use Netbeans 8.2 IDE. There is no Ant installed on that machine I confirmed with ant -v command. I want to understand that :
Is Netbeans internally using ANT to build this project ?
If, yes then how ?
Where in Netbeans I can find the ANT configurations to proof/confirm that its ANT project and Netbeans internally using ant to build it.
Yes
Ant is embedded in the Netbeans installation directory. On my Netbeans 11 it's in <Netbeans_install_dir>/extide/ant.
In Netbeans IDE, menu Tools/Options/Java and there should be an Ant tab which shows the current path to Ant -which can be changed.
Netbeans official site has described about the build tools it is using internally.
Regarding ANT it says:
The default NetBeans IDE project system is built directly on top of the Ant build system. All of the project commands, such as "Build Project" and "Run File in Debugger", call targets in the project's Ant script.

How do I install Android Studio 3.5 Canary 12?

I need to install it, and downloaded the file, but it is in ZIP format. Inside the archive there is no install file, only `uninstall. How do I install it?
You don't install the canary builds. They are meant to work alongside the stable versions which are installed.
For Windows, extract to some place like C:\Programs\AndroidStudioCanary and inside the bin there will be an executable file for 64bit version(and also for 32bit). Create a shortcut to the file and you are done.
For Linux, extract to some place like /home/user/AndroidStudioCanary and inside the bin there will be a bash script file studio.sh. After first launch close all projects via File->Close projects but do not close the IDE. Now in the main UI, click the settings cog and add desktop entry to create application shortcut.
Launch the shortcut from applications now.
EDIT:
Canary and stable versions can run along side each other and their settings can be changed independently. For Windows and linux the folder named .AndroidStudio3.6 will contain config for stable version and .AndroidStudioCanary4.0 or similarly named folder will contain config for the canary version. These folders are inside user directory and are hidden. I don't have a mac but assume something similar.
For canary builds, there are no traditional executable files that you use to "install" the IDE.
You can go into the bin folder, then run the studio.exe or studio64.exe file (depending on your platform) to run Android Studio

Android Studio breaks a part package into seperate directories

I recently imported a project I have been working on from eclipse to android studio and have been using robolectric to test units of my code. The unit tests are placed in a file system similar to this: src/test/java/com.foo.bar where com.foo.bar is a package. On every reboot of Android Studio the file system breaks a part the directory into src/test/java/com/foo/bar where all of the folders are directories (including the java folder which should be a Java folder).
Has anyone else experienced this problem?

"Code" on Linux. How to and prereqs to compile .NET 4.5..4.6 core/portable library or executable from Linux?

I just got Visual Studio Code for Linux installed on xubuntu 14.04.2-desktop-amd64. I have it extracted in my home folder. In the /home/Visual Studio Code subdirectory into its own subdi I have a subdirectory containing a .cs file to compile to an executable. Does the Code download already have the necessary files to target .NET 4.5.2 or 4.6? If not, then where should you download the .NET frameworks 4.5, 4.6? Microsoft, the Ubuntu Software Center, p2p torrent, ...?

Using NuGet for Universal Windows Store App development

I'm trying to use precompiled NuGet packages, like zlib, for WinRT Universal App development. Everything installs and compiles just fine, but running app ends up with "Unable to locate DLL" exception. Apparently, zlib.dll ends up copied into AppX\bin\v120\Win32\Debug\dynamic\cdecl instead of just AppX. If I manually copy .dll to AppX folder, everything works as a charm. What am I doing wrong? How to make .exe load a library in the correct subfolder or make packager copy a .dll into application root folder?

Resources