Programming :: Make A Java Application In Netbeans 6.9.1 - V4L4J - Import The Libaries
Oct 27, 2010
I'm trying to make a java application in netbeans 6.9.1 (ubuntu 10.10) and I need to use the webcam on the system. Now I found this project: [URL] I am able to run the program and see the vid imput from the webcam using: "java -cp /usr/share/java/v4l4j.jar -Djava.library.path=/usr/lib/jni au.edu.jcu.v4l4j.examples.DeviceChooser" The problem is how to import the libaries into netbeans, there is an explanation on the site how to do it with eclipse but I don't have any experience with ecplipse and judging from what people have to say about how it works I don't want that either. I get the following error as output:
[Code]...
View 3 Replies
ADVERTISEMENT
Aug 26, 2010
I just started taking AP Computer Science A at my high school and we are learning to program in Java. At school we use Windows XP laptops with Jcreator but at home I just have my desktop with Ubuntu 10.04. I installed NetBeans 6.8 with no issues but can't figure out how to import and be able to work on my Jcreator projects from school. Not sure if this is the right section but I really need to get something working for school.
View 2 Replies
View Related
Feb 4, 2016
i cannot seem to find a proper way to make Java my default application to open .jar files. I just made a new Debian 8.3 install on my laptop HP Pavilion G6 and the default application for opening .jar files is the Archive Manager. But when i go to "Open with.." section on right-clicking the .jar file, i get no JRE or JDK option to choose. I just installed the openjdk 7. I can manually run them from the bash, but it would be much more convenient if i just double-clicked it. Here is what i get when i run several commands in the bash :
1) which java ->Code: Select allĀ /usr/lib/jvm/java-7-openjdk-amd64/bin/java
2) java -version -> Code: Select alljava version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
3) echo $PATH: Code: Select all/usr/lib/jvm/java-7-openjdk-amd64/bin:/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin: /usr/local/ sbin:/usr/local/bin:/ usr/ sbin:/usr/bin:/ sbin:/bin
4) javac -version : Code: Select alljavac 1.7.0_95
View 4 Replies
View Related
May 23, 2010
Netbeans 6.8 Ubuntu 10.04: I add php to netbeans and when I type $ gksu netbeans its open netbeans without php editor. Only when I type $ sudo netbeans its open it properly
View 1 Replies
View Related
Mar 4, 2010
I'm not sure if this is the place to post this, but I'm having trouble with NetBeans.
I'm trying to run a Java applet.
My code (provided by my Java instructor):
Code:
I get 1 of 2 errors, depending on my config:
1) If I run it with <default config>
2) If I run it with Web Start
I need NetBeans to work with applets for my Java class.
View 1 Replies
View Related
Jun 11, 2009
I am currently taking a Java class and I am not understanding it very well. I have compiled the following program, but it will not give me any data back to where I input the employee name, hours, rate. Can you look it over and tell what I am missing? I have been working on this for about 7 hours now and I have been reading and researching and just can not seem to know what is missing.
public class Employee
{
public static void main( String args[] )
[code]...
View 4 Replies
View Related
Jul 2, 2010
and I've been using windows alone until now. There is something I don't quite understand in ubuntu and that is where do you install programs (something similar to the Program Files folder in Windows perhaps) and is there something similar to registry, because I installed JDK from a downloaded binary and when I installed Netbeans it didn't see the Java installation, and where exactly are the system files?
View 3 Replies
View Related
Jul 21, 2010
i have made a small program to find the md5 checksum of a string.i am using xshell to compile the program.
Code:
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <md5.h>
[Code]...
View 4 Replies
View Related
Feb 8, 2011
Is it possible to create a loadable module for a C app that could be loaded into the app in runtime from a CLI or web interface?I would like the code to handle a particular type of structure to be "swappable" for lack of a better term. This would allow different modules to be used based on the users wants without having to mess with code. A different module could be downloaded into the application directory then loaded. Basicaly the code would be handed a pointer process it then return it.
View 2 Replies
View Related
Nov 28, 2009
An application that can make sound equalization but I couldn't find any powerful tool so I decided to do one my self I know it will be very hard task but their is no other solution my program will do some audio effects like (echo, repeat, trible, bass, filtering, fading,...)and (fft,addition,....), I will take the signal from the mic and put it on the speaker after my operation is done I think I must take into consideration that application is a real time but i don't know what to do! i don't know should I use java or C/C++! I don't know how to deal with the audio driver (take signal from mic and put it on the speaker)
View 10 Replies
View Related
Apr 14, 2010
So, I have this application called Impact, it is an explicit time integration Finite Elements code written in Java...
[url]
I untar the pack, and launch the application calling a script, from within the untarred folder,
Code:
This launches a gui which allows me to setup a case, which needs some setup file, tipically some *.in and a mesh file, tipically some *.msh.
Other mode of executuion consists of calling the setup file as argument to Impact.sh script ( CLI execution mode, for g33k5 )
My problem is : I have packed the whole stuff into a Slackware .tgz, that places it in /usr/local/Impact, and placed a calling script in /usr/local/bin,
Code:
Code:
I decided to hack the ImpactGUI_OGL_linux_amd64.sh script from
Code:
Code:
no avail,
Code:
even after adding /usr/local/Impact/bin to PATH... won't go...
I can run this thing from within its directory... but I do not like messing within the directories of my applications, this is why I sent this to /usr/local, and placed a calling script in /usr/local/bin...
View 4 Replies
View Related
Mar 24, 2010
Installed netbeans via synaptic but when I click 'NetBeans' it doesn't open... no error nothing
Tried running 'netbeans' in terminal and it's the same!
View 8 Replies
View Related
Jan 31, 2011
I have started learning Java and I don't really get on with Netbeans. (I found it hard to compile and debug etc but that could because it is late here). What IDE do people use and why?
View 5 Replies
View Related
Feb 11, 2011
When I do a "openssl x509 -in server1.pem -issuer -noout" after I've supposedly signed it with the CA, the issuer is, for some reason, the DN string of server1. If server1 generated the CSR, and it is coming up as issued by server1, doesn't that indicate a self signed cert? How could the CA be producing a cert that has an issuer of another server? Am I just completely off base? Sorry, I'm a bit of a newb with the SSL pieces.
I hope this is the right place for this, but I'm having some difficulty using the java keytool and OpenSSL tool on a Solaris system.
I have a server (CA server) with OpenSSL installed that I would like to use as a Certificate Authority. The second server (server1) is a WebLogic server with JDK 1.6.0_21. I'm trying to configure it to use a certificate that has been signed by server1.
For some reason it keeps giving me this error when I try to import the signed SSL certificate: keytool error: java.lang.Exception: Public keys in reply and keystore don't match
Am I doing something wrong in this whole process?
1) Generate the Private Key for the CA server
openssl genrsa -out CA.key -des 2048
2) Generate the CSR on the CA
openssl req -new -key CA.key -out CA.csr
3) Sign the new CSR so that it can be used as the root certificate openssl x509 -extensions v3_ca -trustout -signkey CA.key -days 730 -req -in CA.csr -out CA.pem -extfile /usr/local/ssl/openssl.cnf
4) On server1, create Server Private Key KeyStore keytool -genkey -alias server1 -keysize 2048 -keyalg RSA keystore server1.jks -dname "CN=server1.domain.com,OU=Organization,O=Company,L=City,ST=State,C=US"
5) On server1, create a CSR from the recently created Private Key
keytool -certreq -alias server1 -sigalg SHA1WithRSA -keystore server1.jks -file server1.csr
6) Transfer the CSR over to the CA (server1) so that it can be signed openssl x509 -extensions v3_ca -trustout -signkey CA.key -days 365 -req -in server1.csr -out server1.pem -extfile /usr/local/ssl/openssl.cnf
7) Transfer CA Public Cert to server1 and Import into keytool keytool -import -trustcacerts -alias CA_Public -file CA.pem -keystore server1.jks
8) Import recently signed CSR to app server keystore (This is where I receive the error) keytool -import -trustcacerts -alias server1 -file server1.pem -keystore server1.jks
View 1 Replies
View Related
Sep 19, 2010
I recently upgraded from Ubuntu 10.04 to 10.10. All was going well until netbeans started throwing up errors about not being able to find the "stddef.h" header being called from the stdio and stdlib headers. Now I am unable to even initialize variables without failing.
I was using 6.9.1 from the netbeans website, but then I installed 6.9 from the repos alongside, and I still get the same error. Do I need to remove 6.9.1 ( I would rather remove it and keep the repo version), and if so, how do I do it?
where the stddef.h file is located so that I can replace it, or know of any work around?
View 3 Replies
View Related
Mar 16, 2010
How do I make an application launcher in the panel launch more than one application? Is there some sort of a symbol I type between the apps in the command line? Like ;
View 1 Replies
View Related
Mar 28, 2010
In my project,Login window is created as a Dialog box.So when i tried to call the constructor of Login from Main it was generating an error regarding the arguments passed.I have not used any arguments when i called. when i looked at the code, the function was declared as public Login(java.awt.Frame parent,boolean modal)so when i call it from main(),what am i supposed to do ?
View 3 Replies
View Related
Apr 13, 2010
I'm trying to make a combo box which should have elements dynamically taken from a database. I've an Exam Table,and it has columns Sno,Ename,Month,year. i need the combobox to list to the elements that are present in Ename.
i read some things in the web and tried that out in the netbeans. it said to rightclick the combobox and set bind ->elements and bind->selecteditem. But i'm not sure how to set the binding expressions inorder to get the required list in the combobox.
View 1 Replies
View Related
Feb 16, 2010
I have two broken shortcuts for Netbeans on section Applications -> Programming.
View 3 Replies
View Related
Feb 14, 2011
Below are the header files and the program:
using namespace std:
View 2 Replies
View Related
Dec 20, 2010
There's a site where you can play classic NES games online without any installation, just need Java: nintendo8.com. But when selecting a game from the site's game list and it tries to load, I get this error:
icedteanp plugin error: Failed to run /etc/alternatives/../../bin/java. For more detail rerun "firefox -g" in a terminal window.
I then ran "firefox -g" from terminal, tried again and got this log:
ERROR: Invalid browser function table. Some functionality may be restricted.
/usr/src/packages/BUILD/icedtea6-1.9.2/plugin/icedteanp/IcedTeaNPPlugin.cc:1506: thread 0x80935c0: Error: Failed to spawn applet viewer: Failed to execute child thread "/etc/alternatives/../../bin/java" (No such file or directory)
I have Java up to date from its repository.
View 8 Replies
View Related
Jan 18, 2011
I just installed Ubuntu 10.10 last evening and all has been going well. Lucid didn't work out for me, so I used other distros. 10.10 fixed all issues except one thing. This is a need for me; e-courses I take require that I use Elluminate Live, a Java-based conference software. It runs flawlessly on every distro except Ubuntu. I had to use another PC running a different distro in order to get to a class. I really don't want to do that all the time. I thought it may be OpenJDK, but I found that Sun Java was installed and in use (I installed the extras while installing). I tried OpenJDK (worth a shot eh?) and the exact issue persists. All other programs have perfect audio.
View 2 Replies
View Related
Feb 2, 2011
We have an in-house developed Java application deployed on Red Hat Enterprise version 6.0, on an IBM hardware X3630 N3 model 64-bit server with 6 core processors. Apparently, when the application is running, it is picking up only 2 processes, at random. Hence, the load is not being distributed equally and occupied processors are showing 100% utilisation. How to resolve this so that all 6 processors are being utilised for proper load sharing.
View 1 Replies
View Related
Jun 27, 2010
Ok I just downloaded this program called Phex, it is a really cool program and i get it to run, but only from command line. I downloaded this program and its already compiled and works fine but i can only launch it from a command line by typing "java -jar phex.jar" I have created launchers before and they have worked, but this one just doesn't work. I have all permissions on the directory and the files, but how to create a launcher for this file.
View 8 Replies
View Related
Jan 17, 2011
I am new to pygame and Linux and I am using Red Hat Linux and I cannot import pygame. I thought I installed it but when I open up Python IDLE It says "No module named pygame". Does anyone know what is wrong?? I downloaded pygame1.9.1.release.tar.gz from URL...I might not have installed it or maybe I need something else too, I don't know.
View 6 Replies
View Related
Oct 6, 2010
I"m running 10.04 on a netbook. I switched my Java look and feel to Nimbus and now my java application opens with most of the buttons and window content missing. The main menu is there, but otherwise the main form is mostly blank. If I restart the application (not my computer) 2-3 times, the problem is resolved until the next time I have to launch the java app. I did not see this issue before changing the look & feel setting for Java. But the GTK l&F doesn't work for other reasons, so I was forced to make a change.
I'm running compiz and I know the blank windows in Java apps was a common problem a while back. I'm not sure if what I'm seeing is related to that old problem or is something different.
View 2 Replies
View Related
Dec 8, 2010
I have these "out of memory" issues with fedora 13 64bit. previously we had centos5, the same environment in terms of programs used, nevr experienced these problems. the issues are for instance a java application already started stops suddenly, or won't even start.
example from tomcat stop:
[code]...
The one thing i don't understand about these numbers is where it goes all that used memory. i only listed the top 40 tasks out of 200 in order of physical ram used, can it be that even if it "sees" 5gb it cannot use it all, just like say windows7 and usable memory? (I recently troubleshooted that one, where out of 12gb w7 reported 8gb usable, I solved that by reverting the cpu overclocking.)
View 7 Replies
View Related
Jul 25, 2011
When I run a java application (minecraft) the computer occasionally freezes. I'm not sure which version of Java I have. The online java app for telling you which version I have says that I have an old version. The command line says I have an up to date version. If I need to update Java Sun , how do I do it ? I followed the instructions once and didn't work.
View 1 Replies
View Related
Aug 2, 2010
I am developing a java application that deals with the parallel port I used the parport library, I have the following problem: I am using netbeans 6.9 and linux redhat, when I run the code (java code that controls parallel port) from netbeans I get: "ioperm error: Operation not permitted" I used the "clean and build" function in Netbeans to create the jar file (test.jar) then I changed the permission of the test.jar to root using this command "chmod 4777 test.jar" and the test.jar file worked just fine as a stand alone file, but I still get the same error message when I try to run the program from Netbeans
View 1 Replies
View Related
Mar 29, 2011
I have this simple code written in python:
Code:
import os
os.system("xterm -e 'ls /usr/lib'")
Is there anyway I can hide the xterm window that is opening ?
View 7 Replies
View Related