How To Install / Extract JEE Libraries
Feb 7, 2015
I'm trying to make my first servlet, however since I have only installed the Java SE, the javac compiler is complaining about missing packages (javax.servlet.http...)
I've realized now that I need javax.servlet jar or class files from Java EE, but after downloading java_ee_sdk-7u1.zip from Oracle here I'm not seeing any .sh or java_ee_sdk-7-jdk7-macosx-x64.sh installer (which I saw mentioned elsewhere). The oracle page only instructs to unzip the downloaded file, and searching for javax.servlet only reveals a few files which I'm not sure what to do with:
javax.servlet-api.jar,
javax.servlet.jsp.jar,
javax.servlet.jsp-api.jar,
javax.servlet.jsp.jstl.jar,
javax.servlet.jsp.jstl-api.jar,
javax.servlet.ServletContainerInitializer,
How do I go about installing the Java EE libraries I need? I am on a mac, and I'd like to do this without IDE, using the command prompt if necessary.
View Replies
ADVERTISEMENT
Jan 19, 2015
I'm trying to learn how to read from, and write to, Excel files. I'm looking at this link : [URL] ....
It seems like there are some Apache dependencies. So, I go here : [URL] .....
I downloaded the zipped file from the first link. Now what? I don't see any .exe file, or any way of installing it. How do I install it, or run it, or whatever? What is the next step here?
View Replies
View Related
Apr 5, 2014
I am trying to install Java on my Debain based Linux OS and can`t seen to figure it out. I first typed "chmod +x jdk-8-nb-8-linux-i586.sh", than typed "./ jdk-8-nb-8-linux-i586.sh" to install it. It started to install, but than it gave my this message: (computer name has been changed)
bobsmith@bobsmiht-OptiPlex-GX620:~/Downloads$ ./jdk-8-nb-8-linux-i586.sh
Configuring the installer...
Searching for JVM on the system...
Preparing bundled JVM ...
./jdk-8-nb-8-linux-i586.sh: 1: eval: /tmp/.nbi-5045119.tmp/jre-7u4-linux-i586.bin: not found
Cannot prepare bundled JVM to run the installer.
Most probably the bundled JVM is not compatible with the current platform.
How do I fix this? My Linux computer is not connected to the internet, I don`t know if this is a problem or not.
View Replies
View Related
Apr 19, 2014
I used Ubuntu 13.10 on a Chromebook and Java7 and Java8 both worked nicely. Not on Ubuntu14.04, however.
I can try
sudo apt-get install openjdk-7-jdk
javac -version
java -version
… and it tells me 1.7.0_51 IcedTea etc. I haven't found an OpenJDK version of Java8, so I tried the usual technique of unzipping the Oracle download into /usr/java (which I have created and given “campbell” ownership of).
campbell@xxxxx:~$ /usr/java/jdk1.8.0_05/bin/java -version
bash: /usr/java/jdk1.8.0_05/bin/java: cannot execute binary file: Exec format error
campbell@xxxxx:~$ /usr/java/jdk1.7.0_55/bin/java -version
bash: /usr/java/jdk1.7.0_55/bin/java: No such file or directory
Same download in my home directory as I had last week. I repeated the download and got the same error. It is different from the error for Oracle Java7, which I haven't actually got installed at the moment.
I shall probably revert to Ubuntu13.10 for a bit.
View Replies
View Related
Dec 2, 2014
I am attaching a document which shows the current state of my registry.What I want to know is if I can [safely] delete the JavaSoft folder with all lower subfolders, then re-install jdk1.6/0_31 which, I am told, is the current version being used here by developers.According to others on the development team (not my team), there COULD be something in the registry that is preventing both the installation of java jdk AND its uninstallation.Since I cannot seem to attach any kind of document.
View Replies
View Related
Sep 22, 2014
I have created a java file and coverted it into exe file.. that exe file can be run directly by clicking the icon.... i dont need this, i want to install this java exe file and then use it.. is there any possible way?
View Replies
View Related
Aug 22, 2014
In my web application there is a need to provide a custom plugin to client , so I need to inform the browser to show plugin install window so that client can install that particular plugin.
how to do it from my JSP page . ?
View Replies
View Related
Sep 1, 2014
I have uninstalled JAVA because I needed to download the 64-bit version but no matter WHAT I do I still get the same installation error message "keyset as registered in invalid" and I was downloading it from [URL] .... I will do whatever it takes to fix this!
View Replies
View Related
Jul 16, 2014
I want to make a touchable program to install on my costumer information server that my client can search and register via my local database, how can i do this????
View Replies
View Related
Jun 23, 2014
How the cacerts file if populated within the java install directory?
Are there standard certificates that come with the jre install? Are they pulled from the OS somehow?
View Replies
View Related
Dec 23, 2014
We are using Kronos and when our staff trys to run reports -- they get three java prompts.The first one is asking if they would like to update java.The second one is do you want to run this application.The third one is allow access to the following application from this website
We are in a non persistent VDI environment so these prompts come up over and over and over.how to edit the Windows 7 image to disable all three of these prompts.Is there a way to install java from the command prompt with the parameters to disable these prompts from ocurring? if so i will uninstall and re-install with those prompts.
View Replies
View Related
Aug 5, 2014
I'm trying to install java_ee_sdk-6u3-jdk7-windows-x64.exe on our new Windows Server 2012 machine but the installer starts and I then get a Setup box appear that says Error: The Java(TM) Virtual Machine has aborted. I've looked in the Event Viewer and there are no messages and I've tried to get the installer to create a log file (by passing the parameter -l <loglocation>) but it doesn't seem to get that far as no log is created.
The very first time I tried to run the JavaEE install on this machine, it installed everything ok but didn't create the windows service as .NET Framework 3.5 was missing. So I uninstalled JavaEE and added in the .NET Framework 3.5 and then my problems began. I have already installed these versions of Java and JavaEE successfully on a previous Windows Server 2012 machine which had the .NET Framework 3.5 on it.
The JRE installed already on the computer is jre-6u45-windows-x64.exe and I am logged in as an administrator. I've tried uninstalling the JRE and reinstalling and also doing a registry clean using CCleaner incase there are any old references to the JRE/JavaEE but it didn't work.
View Replies
View Related
Dec 23, 2014
I need to build an application that can preform measurements. So I have a measuring device that can be connected through USB (with a rs232 converter aka VCP).The manufacturer provided me with two libraries:
C++ : a library (.lib) file and a header (.h) file
VB6 : a DLL (.dll) file and a list (.txt) with all the available functions
And also some demo code. Can't get the C++ code running with my Borland C++ 5.5 compiler but the VB6 code is working.What can I use to integrate into my java code.
View Replies
View Related
Nov 18, 2014
I've been trying this for hours but it's not working. I'm trying to add the sea glass look and feel library to my project but I still get the error:
Exception in thread "main" java.lang.NoClassDefFoundError: List (wrong name: list)
What should I do? I've added the library to "project settings >Required Libraries" and did not forget to check the box. I've also imported the L&F so it can't be that.
View Replies
View Related
Nov 22, 2011
I'm researching the viability of a project. One of the requirements is that a "play slip" will be used to read input. I've searched for open source Java libraries that utilize OMR's (optical mark reader) but to no avail. I have located a C library that fulfills the task- is there a way in Java to access/use non-native language libraries?
View Replies
View Related
Mar 11, 2014
I am responsible for an application which the developer did not build with ANT and also, he had the libraries sitting on his local machine.
Do you have any recommendations on what I should do with these libraries, knowing they were parcelled out and sitting on his local machine instead of in the project itself (Eclipse IDE workspace)?
I am building a script in ANT but don't really know what to do with his libraries. I did get a bunch of compilation errors earlier when I did not have the libraries, but now that I have them, I don't really know where to put them.
View Replies
View Related
Jun 13, 2014
I have one column "category" which contain data like
`"Failed extract of third-party root list from auto update cab at: [URL] with error: The data is invalid."`
I need to select url part in between `" < > "` sign of category column.
how to do this usign regex?
View Replies
View Related
Mar 6, 2014
I have prepared a java tool (got codes from google/internet) which combined images and make a SWF file.
Java Code:
package swf;
import swf9.*;
public class SWF {
public static void main(String[] args) {
SWF9 swf = new SWF9();
//swf.makePNGs("D:/JAVA_PRACTICE8/Image", "Image", "320x240", 25, "D:/JAVA_PRACTICE8/Image/out.swf");
swf.makeJPEG2s("D:/JAVA_PRACTICE8/Image", "Image", "320x240", 25, "D:/JAVA_PRACTICE8/Image/out.swf");
[code]....
View Replies
View Related
Feb 13, 2015
how can I extract data from two different files but produce one output. For example, the first three columns are from text_file_1 and the last column (the last foruth column of the output) is from text_file_2.
View Replies
View Related
May 10, 2014
I'm looking to get two values from this string. I have tried re formatting and with little success. I read this in from a text file and then tried the below code to extract it. I have also tried
{Deposit=100.00, Fees Paid=5.00}
I am just looking to get the 100.00 and the 5.00. I tried using this code below but it separated it into Comma and put it in an array which is probably what im not looking for.
[code]
final Pattern pattern = Pattern.compile("[=st]");
final String[] result = pattern.split(st2);
System.out.println(Arrays.toString(result))
[code]
View Replies
View Related
May 16, 2015
I am not necessarily 'new' to java, however I have always used NetBeans so I am not entirely sure how to do what I need with the terminal commands. I am trying to execute a java jar file(which works perfectly on windows) on the Raspberri Pi, essentially debian linux.
As I mentioned previously, I have a java jar file which I can execute on windows, but it depends on three other libraries, namely RXTX, MySQL, and JSON. I am not positive how to compile this into a jar, or execute it in debian.
This was how I attempted to load two of those libraries, however the last line is the error I received.
Direct copy from the terminal:
pi@raspberrypi ~/Desktop $ java -Djava.library.path=/usr/lib/jni -cp /usr/share/java/RXTXcomm.jar:/usr/share/java/mysql-connector-java-5.1.10.jar:. Automation_System.core.HAS
Error: Could not find or load main class Automation_System.core.HAS
Specifically, the problem seems to be that I cannot use the -cp flag to indicate classpaths, and the -jar flag indicating I am executing a jar in the same command. I am not sure how to point the compiler to my main class HAS in the core package of the jar, and also to the libraries referenced.
View Replies
View Related
Jun 8, 2014
I wrote my own class to represent univariate polynomials and it works fine, but I was quite sure I was reinventing the wheel, and should obviously like to extend my program's functionality using other kinds of mathematical object.
I've been looking and there are of course open source libraries available which contain everything I'd want to do myself, and more, and probably better, saving me a lot of work.
However the usefulness of this kind of library extends far beyond simple practice and would be invaluable in developing more complex applications.
If I were to plan to write an application that I would at some point in the future like to compile into an executable and sell, would I need to take care about any open source libraries used that the compiler relies on? If so, would it be possible at that stage to use just the API and write my own classes replicating the functionality to avoid breaking license agreements?
The library I'm looking at right now is distributed under the Apache license.
View Replies
View Related
May 5, 2014
I have been working on project (developing web interface for generating dynamic reports)for that i have downloaded dynamic reports library and i want this library to be imported for my project to jsp page on netbeans 7.2 how can i do it?
View Replies
View Related
Apr 11, 2014
My task is to implement a B-Tree data structure in Java using no libraries.
My current problem is inserting when the root is full, thus the middle key goes to root.keys[0] and then it get the left and right side which are new Nodes separating and inserting their keys. My problem is that for some reason there is a random second number when in the root and secondly my boolean leaf is always false meaning it never detects that the Tree is deeper than root.
The coding makes sense to me and I have tried printing everywhere but still can't seem to find the problem.
public class BTree {
/*
1. You may not modify the public interface of this class. You may however add any additional methods and/or field which you may require to aid you in the completion of this assignment.
2. You will have to design and implement a Node class. The BTree should house Integer objects.
3. You will notice that there are some overloaded methods, some of which work for Integer objects and some with primitive type int. You have to find a way to implement the methods to work with both types.
*/
class BTreeNode {
boolean leaf = true;
int numKeys = 1;
int mOrder;
Integer keys[];
[Code] ....
View Replies
View Related
Nov 15, 2014
I am supposed to read in a file and extract the data. I am trying to add a Long into an Array that I initialized. So this is how my method looks like :
Java Code:
public void readOSMWay(File osm){
try {
Scanner output = new Scanner(osm);
while(output.hasNext()){
String line = output.nextLine().replace("^s+","");
if(line.startsWith(" <way")){
Road way = new Road(line,true);
[Code]...
I am having problem with the else if block. I am supposed to add all the Long values into the array.
error: Java Code: The method add(Long) in the type ArrayList<Long> is not applicable for the arguments (String) mh_sh_highlight_all('java');
View Replies
View Related
Mar 15, 2015
What I am trying to do is extract the digits from between the words 'deal' and 'of'. I was wondering if this was possible to do with a regular expression or if I should just use a scanner.
UNIQUE Passive - Cleave: Basic attacks deal 20% to 60% of total Attack Damage as bonus physical damage to enemies near the target on hit (enemies closest to the target take the most damage).
Is there a regular expression that I could use in order to extract the '20' and the '60' from the above text. Below is what I have tried, but does not work.
(?<=deals)(d+(?=%))(?=of)
just to make a clarification, these numbers will not be the only numbers and the strings themselves will change. Everything can be considered a variable. The only constants between each string would be the words 'deal' and 'of'. The regex pattern "d+" is not a viable expression for my case
View Replies
View Related