Unable to add 'json-simple' library in netbeans - java

I am doing java project in netbeans, i don't know what settings i just changed, now i can't add external library to my project.
The option to add library is not visible as i saw in many YouTube videos. How should I add 'json-simple.jar' in my project?
In some videos by right click on java dependencies->add library option, we can add external libraries. But in my case i case even, right clicking does nothing.
enter image description here

Related

What is the output when building android framework from the source tree

I am planning to modify the Android framework within the source tree. I have few questions,
If i build only the framework directory what will be the output? Will it be a jar file or the whole system image?
How can I use the built framework to develop apps that use this custom framework? (will there be any android.jar or something similar?
Thank you.
Building only the framework (mmm frameworks/base) is not enough. If you do in this way you will only obtain a bunch of jar files containing built framework. To use the modifications, you need to build the full image against which you will test your changes. Do not forget to do make update-api
To use the modified framework, you need to build sdk. To do this, you need to do the following steps after you've updated the api (see more https://android.googlesource.com/platform/sdk/+/master/docs/howto_build_SDK.txt):
source build/evnsetup.sh
lunch sdk-eng
make sdk
After you've built the SDK, you need to point Android Studio project to the new location of the SDK. To do this, create a new project in Android Studio, select the root folder in the Project panel, and make a right click on it selecting the "Open Module Settings" item (or simply pressing F4). Point the location of the SDK to the folder with newly created SDK (it should be somewhere under the out/host/linux-x86/ directory if you use Linux-based host operating system).

How do I open open-source projects in Android Studio?

I'm very new to Android programming, and I wanted to try learning by example. I found this open source project on Github: https://github.com/android/platform_packages_apps_contacts
I was hoping to open this in Android Studio so I could modify certain elements and see the result by running it, eventually learning how the process works as a whole. The problem is when I download the zip file and try to open the folder inside with Android Studio, nothing shows up. Any help would be appreciated!
In Android Studio, close all open projects until you get the "Welcome to Android Studio" screen. Choose "Check out project from Version Control", and in the popup, choose "GitHub". Screenshot:
Follow the UI from there.
Try to checkout it directly into Android Studio, VCS->Checkout from version Control->Git
Open all projects using:
Import project (Eclipse ADT, Gradle, etc)
I usually open my project that is saved in Google Drive in other computer, and the next option never work to me:
Open an existing Android Studio project
I always use the first option to avoid problems.
Use Open an existing directory in Android studio.
Navigate the project you wish to open to the directory containing such folders as:
manifest
java/src
res
...etc.
Now, Open.
By default, on Android Studio 2.2.2, when you open an existing Android Studio project, you land on an empty page showing only the name of your project on the top left (just below the open, save, refresh shortcuts icons) but side panels that contains your project structure and details are hidden.
You can open these panels either by pressing "alt + 1" as suggested on the background of the "starting IDE page" or by clicking on menu: "View" -> "Tool Buttons".

Add project library error when close project properties?

I work with eclipse and I would like to use from external project library some class. Every time I open project properties add this external project I get following problem. There is no problems with another project libraries. This additional project has ticked "Is Library".
I think the best way to import an Android library is :
import your library projects to your workspace
right click your main project and properties
close to the top, choose Android
Then click add from the library section at the bottom

Manually add the LWUIT plugin to netbeans

I have tried going to the plugin download center and I refreshed over 50 times over the course of a week and still i cannot see the LWUIT plugin for Java ME.
Is there a way for me to manually install this plugin without using the plugin download center?
I found out how to do it after a few hours...
go to this link http://www.java2s.com/Code/JarDownload/LWUIT/LWUIT_old.jar.zip , then open the NetBeans IDE and create a new MIDlet project. In the project side bar, go to resources and right-click. On the menu that shows up, click add library. Click edit. Click on add JAR/folder and point to where you extracted the jar file.

How do I add "Android Project" to the File>New>_____ Menu in Eclipse?

I watch all of these Android tutorials online and am getting more and more into Android programming and I find it to be a slight hassle to have to go to File>New>Other>Android>Android Project every time, especially when the person I'm watching has it on theirs.
It would be very helpful if someone could provide me with a way for Android Project (and Android XML File) to be put on that "New" menu.
Thanks
You can add 'Android Project' to the 'New' menu (and customize others) as follows:
Window > Perspective > Customize Perspective... > Tab 'Menu Visibility' > Expand 'File' > Expand 'New' > Tick 'Android Project'
The first one is new android project and the last one is new android xml file.
you can also customize what you want to add thru customize prespective by right clicking the menu area.
If your using eclipse in the toolbar the 8th icon is to Create New Project (its a folder with a a and a + sign sticking out the top of it).
Are you sure you have your eclipse configured properly? I think you need to install ADT and Android SDK first.
If you already have installed them, restart your eclipse to work with it properly.
If not and want to check how and where to install check here.
Following these instructions can enable all these things you want. Feel free to comment.

Categories

Resources