I have a Netbeans Web Project created via Netbeans project creation wizard. The Project is almost complete, being used in testing so not a new one. This is a REST API actually. Anyway now we need to implement JWT into this, so we looked into this famous library - https://github.com/auth0/java-jwt
The problem is that it is totally maven based, can't find a jar file to download and implement. In this case, how can we integrate this into our application?
Related
Can someone name me one mini framework in Java that will allow me to build a REST API? The thing is that all need maven installation or Gradle or something similar, but I need something that will "play" with a very simpler installation like installing just a jar or something similar.
Maven and Gradle are project management tools .Developers use them mostly to manage dependencies , but there is no any hard rule saying you must use it compulsory.So if you don't want to use them , you can neglect them ,but then as you asked you need to add all those JAR files externally by searching them through the internet or mostly in maven central repository.Best option would be spring boot application but if you don't like to use maven then I suggest you to go with Spring framework ,but then you should add all those JAR files manually.As an alternative JAX-RS + Jersy will also be fine .
I have developed a java desktop application in netbeans 8.1 for a security project I am currently busy with.
I have been asked by the client to add Google drive or DropBox to the desktop application for storing the data files on the cloud storage at any of the two mentioned above.
I have done research and have seen that the only way to get this to work is to use Maven or Gradle.
I have picked up that there is Maven projects in Netbeans, But I would like to know if the following is possible:
Would it be possible to just copy the desktop application to the Maven created project?
Do I need to use the dependencies to add the jars needed for the desktop application classes?
Will I need to re-download the jar files or how can I add the jars that I currently have on the computer to the Maven project?
Will the copying of the normal desktop application to the maven project affect any of the other features created previously?
Does the Maven project work differently from normal java desktop applications created in Netbeans?
I would be very grateful for answers to this or any other information that would help out. I do not want to start this transition and land up it not working out.
Any information will be tremendously helpful.
Much appreciated for your help
At work here, most java developers use netbeans with Maven.
Netbeans for java is built around Maven.
I currently have an opensource maven project that I have downloaded off github. The project includes 14 modules, all having dependencies with each other.
I am trying to create a RESTfull API using Tomcat 9 on eclipse to access the aforementioned project.
I started by creating a dynamic web application in eclipse. Is there any way I can add the project (GitHub project mentioned above) to the dynamic web application, so I can write a logic layer that can interact with the project.
If your goal for your second project is to consume the RESTful web services exposed by the first, then it doesn't need to actually interact with the first project at the code level. I would just create an entirely separate project in Eclipse. The first REST project you downloaded doesn't even need to be running on the same machine as your second project.
I have modified the Web content folder & then did the Clean project followed by build project. But still there is no change in project.
I am using tomcat server 7 & JRE1.7.
What is the best way to build a java dynamic web project? How to ensure each & every file of the project gets re-build?
I cannot create a comment on this question so have to put it up as an answer..
Java dynamic web project is not building
What kind of build tool are you using? i.e Maven, Gradle, Ant
I have modified the Web content folder & then did the Clean project
followed by build project. But still there is no change in project. I
am using tomcat server 7 & JRE1.7.
Tomcat is there to deploy your web project, so if your build is failing you will not be able to deploy it successfully to your tomcat server. Maybe you could provide us with some sort of error message?
What is the best way to build a java dynamic web project? How to
ensure each & every file of the project gets re-build?
Don't think you will find any "best way", but there's several options out there you can use. Fast google search for build tool
Maven
Gradle
Ant
This is just a few.
I'm little confused because of too many options when we take anything in java. I want to create a web application in java. whether i have create web application from 'java web' or 'maven' by creating new project in netbeans. I may use some archetypes in my future, but whether maven project has full IDE support from netbeans
I've been using Maven projects in NB 7 without a problem.