JDBC + Mandrake Linux + Mysql + netbeans
I'm trying to conecto to a mysql server using the following code of netbeans. It compiles, but I got a java.lang.NoClassDefFoundError on execution time.
Does anyone have any clue of how to solve it?
(I got the netbeans+sdk package, is it complete? Maybe the jdbc class is missing? Where can I get it?)
Thanks!
import java.sql.*;
public class Connect
public static void main (String[] args)
Connection conn = null;
try
String userName = "root";
String password = "kron9013";
String url = "jdbc:mysql://192.168.0.109/Solbet";
Class.forName ("com.mysql.jdbc.Driver").newInstance ();
conn = DriverManager.getConnection (url, userName, password);
System.out.println ("Database connection established");
catch (Exception e)
System.out.println (e.toString());
System.err.println ("Cannot connect to database server");
finally
if (conn != null)
try
conn.close ();
System.out.println ("Database connection terminated");
catch (Exception e) { /* ignore close errors */ }
Exception in thread "main" java.lang.NoClassDefFoundError: mysql/Connect (wrong name: Connect)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
On this line:
Class.forName ("com.mysql.jdbc.Driver").newInstance ();I'm 99.99% sure you can drop the newInstance() part. However, I'm not certain if that's why it's failing.
Similar Messages
-
ODBC or JDBC on Linux/Oracle
http://www.openlinksw.com/
Is where you will find connectivity for LINUX and Oracle.
I did some research on the connectivity of LINUX and Oracle
after having switched from a Server Farm hosting IIS and then
going to linux.
The basic info I found was in about 20 links.
Some areas of interest might be:
http://www.linuxworld.com/ this is by INFOWORLD MAG but has the
best source and links for commercial Linux.
In addition:
http://users.ids.net/~bjepson/freeODBC/
The free ODBC might be a place to gain the functionality to get
the job done if you have the ability to code at that layer.
The reason WHY odbc is not the preferd method of accessing
Oracle is that OLE DB is thunked through the JET DATABASE ENGINE
or subsystem in WIN9.x and WINNT at the client side.
http://support.microsoft.com/support/kb/articles/q139/7/25.asp
This article goes into some detail how OLE DB, ODBC, ADO, RDO,
and the rest of the MSFT data is handled and by what files.
ORACLE uses "OLE OBJECTS" to get the data and passes the JET
DBENGINE/Sub-system.
So for a Server on Linux and a host on Wintel you might look at
the JDBC or universal Model of data connectivity.
Oddly this was just something I looked into prior to deciding to
get into Oracle8i....
If you get any additional info.. or other "workable" approaches..
Please follow up I would be interested...
nullHave you ever heard of [url http://www.google.com]google?
By searching for [url http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=linux+mysql+jdbc+driver]linux mysql jdbc driver, and following the first link, it took me about two minuts to find the [url http://www.mysql.com/downloads/api-jdbc-stable.html]MySql JDBC driver download page. -
Jdbc for linux.....
hi......
i have a prob in my authentication part of an application which iam developing..
firstly, I use mandrake linux 9.1 which has the mysql database which is the default database.....
I want retreive the username & passwd from database to compare it with the values entered by the users....
how do I have to do this & what is the odbc connection should I use???
P.S::
plz tell me the odbc to be used which is enough as I know how to do the codings.......
Thanx...hi,,,,,,
thanxz for the valuable reply...
i downloaded the zip file.. i extracted it.. can any one tell me how to make link with the database & work properly.. i tried executing the program, i get an error
classNotFound exception :com.mysql.jdbc.Driver
i think something went wrong in the connection....
plz be clear to solve this problem as iam new to this....
thanxz -
I have an urgent query . I have written a java code on microsoft platform that talks with SQL server 2000 hosted on windows200 machine in a network using JDBCODBC driver wothou using a Data source name.
But this same code when i try to run on mandrake linux throws an exception as
java.sql.SQLException: [unixODBC] [Driver Manager] Data source name not found,
and no default driver specified.MS provides a JDBC driver for MSSQL 2000, go to there site and download it.
-
Error message with install of Oracle 9.2 on Mandrake Linux 9.0
Hi,
I hope somebody can help with this. I'm getting an error message during the installation for oracle 9.2 on mandrake linux 9. An error get thrown saying the IP address of a host cannot be determined.
Here is what is in the log:
*** Database Configuration Page***
TitleLabel = Database Configuration
Prompt = Select a database suited to your needs.
ConfigList = General Purpose,Installs a pre-configured database optimized for general purpose usage,Transaction Processing,Installs a pre-configured database optimized for transaction processing,Data Warehouse,Installs a pre-configured database optimized for data warehousing,Customized,Allows you to create a customized database. This option takes longer than the pre-configured options,Software Only,Installs software only and does not create a database at this time,
Selection = s_cfgtyperet = General Purpose
Setting value of s_dbcaProgressOnly to -progress_only
Setting value of b_autoStartApache to true
Setting value of b_launchNETCA to true
Calling query netQueries2.2.0.7.0 getHostIPAddress
Query Exception: UnknownHostException
Query Exception Class: class oracle.sysman.oii.oiil.OiilQueryException
Anyone know how to resolve this error and whether or not it is very critical to the oracle installation?
Cheers
JohnnyHi johnny,
You should first check the hosts file to see if the correct hostname and the IP address are shown. You can also check if the "hostname" command returns the correct result. If everything looks good so far, then next check if command "nslookup" returns the correct IP address. If the nslookup <hostname> command returns error, you will need to talk to the Domain Name Server (DNS) administrator to correct this network configuration problem.
Yogi -
Mandrake Linux 8.0 - can't get Oracle Universal Installer to run
Hi all.
I'm having trouble getting Oracle's Universal Installer to run.
I'm trying to become DBA certified, so I went and purchased
(among
other materials) a book titled "Oracle8i for LINUX Starter Kit",
authored by Steve Bobrowski, published by Oracle Press / Osborne
McGraw-Hill, ISBN 0-07-212442-3.
The book includes a CD-ROM with Oracle8i Enterprise Edition,
Release 2, version 8.1.6 for LINUX.
I'm running an Intel P-III 500 MHz with 512MB RAM, 30GB hard disk
exclusively configured for Linux (no other O/S on it) and Oracle
(so LOTS of hard disk space is available), Matrox Millennium G400
video card (32MB).
My hardware exceeds all requirements listed in aforementioned
book, and also in Oracle's own documentation (from their web
site).
I'm running Mandrake's Linux 8.0, PowerPack Edition, with:
kernel = 2.4.3
XFree 4.0.3 (and I've also tried 3.3.6, with identical results
to those listed below)
glibc 2.2.2
I've followed the book's instructions to the letter, and set up
the environment variables, oracle user, and subdirectories as
required.
So far, so good.
OK. Now, here's where the problem appears:
I log in as the oracle user, and try to start the Oracle
Universal Installer (following the instructions in the book)
as follows:
cd /mnt/cdrom
./runInstaller
The computer tries to do some stuff, then spews the information
listed at the bottom of this posting to the screen. I press
<ENTER> after "OK" and get dumped back to the bash prompt.
That's it. I can't go any further. No Oracle Universal
Installer.
By the way, I've also downloaded Oracle8i Enterprise Edition
Release 3, version 8.1.7 from Oracle's website, and tried to
install that, too. Exactly same results.
The nice folks at Oracle have politely told me to get lost,
and not bug them for unpaid support.
I'd really like to get this stuff up and running, so I can
start studying and practicing for DBA, but I need help 'cause
this problem is beyond me.
So... can anyone help??
Thanks in advance.
[email protected]
[email protected]
=================================================================
=========
Here's what shows up when I try to start the Oracle Universal
Installer:
[oracle@localhost cdrom]$ ./runInstaller
[oracle@localhost cdrom]$ Initializing Java Virtual Machine
from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expande
d/linux/bin/jre. Please wait...
SIGSEGV received at bfffedac
in /mnt/cdrom/stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/E
xpanded/linux/lib/linux/native_threads/libjava.so. Processing
terminated
Sat Sep 29 12:58:56 2001
jre full version "JDK 1.1.8 IBM build l118-20000429 (JIT
enabled: jitc)"
Operating Environment
Host : localhost.localdomain.localdomain
OS Level : 2.4.3-20mdk.#1 Sun Apr 15 23:03:10 CEST 2001
glibc Version : 2.2.2
No. of Procs : 1
Memory Info:
total: used: free: shared: buffers: cached:
Mem: 525901824 116862976 409038848 0 6377472
61140992
Swap: 1069244416 0 1069244416
MemTotal: 513576 kB
MemFree: 399452 kB
MemShared: 0 kB
Buffers: 6228 kB
Cached: 59708 kB
Active: 63740 kB
Inact_dirty: 2196 kB
Inact_clean: 0 kB
Inact_target: 1072 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 513576 kB
LowFree: 399452 kB
SwapTotal: 1044184 kB
SwapFree: 1044184 kB
User Limits (in bytes except for NOFILE and NPROC) -
RLIMIT_FSIZE : infinity
RLIMIT_DATA : infinity
RLIMIT_STACK : 2093056
RLIMIT_CORE : 0
RLIMIT_NOFILE : 1024
RLIMIT_NPROC : 16383
Application Environment
Signal Handlers -
SIGQUIT : ignored
SIGILL : sysThreadIDump (libjava.so)
SIGABRT : sysThreadIDump (libjava.so)
SIGFPE : sysThreadIDump (libjava.so)
SIGBUS : sysThreadIDump (libjava.so)
SIGSEGV : sysThreadIDump (libjava.so)
SIGPIPE : ignored
SIGUSR1 : doSuspendLoop (libjava.so)
Environment Variables -
PWD=/mnt/cdrom/install
LTDL_LIBRARY_PATH=/usr/lib
ORACLE_SID=oralin
TMPDIR=/usr/oracle/tmp
XAUTHORITY=/usr/oracle/.Xauthority
mc=
LC_MESSAGES=en_US
HOSTNAME=localhost.localdomain
LD_LIBRARY_PATH=/mnt/cdrom/stage/Components/oracle.swd.jre/1.1.8/
1/DataFiles/Expanded/linux/lib/linux/native_threads:/lib:/usr/lib
:/usr/lib
NLSPATH=/usr/share/locale/%l/%N
CLASSPATH=/usr/oracle/tmp/OraInstall:../stage/Components/oracle.s
wd.oui/1.7.0.18.0A/1/DataFiles/Expanded/lib/OraInstaller.jar:../s
tage/Components/oracle.swd.oui/1.7.0.18.0A/1/DataFiles/Expanded/l
ib/InstImages.jar:../stage/Components/oracle.swd.oui/1.7.0.18.0A/
1/DataFiles/Expanded/lib/InstHelp.jar:../stage/Components/oracle.
swd.oui/1.7.0.18.0A/1/DataFiles/Expanded/lib/oracleice.jar:../sta
ge/Components/oracle.swd.oui/1.7.0.18.0A/1/DataFiles/Expanded/lib
/help.jar:../stage/Components/oracle.swd.oui/1.7.0.18.0A/1/DataFi
les/Expanded/lib/ewt.jar:../stage/Components/oracle.swd.oui/1.7.0
.18.0A/1/DataFiles/Expanded/lib/xmlparser.jar:../stage/Components
/oracle.swd.oui/1.7.0.18.0A/1/DataFiles/Expanded/lib/swingaccess.
jar:/mnt/cdrom/stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/
Expanded/linux/lib/rt.jar:/mnt/cdrom/stage/Components/oracle.swd.
jre/1.1.8/1/DataFiles/Expanded/linux/lib/i18n.jar:/mnt/cdrom/stag
e/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/lib/
math.jar:/mnt/cdrom/stage/Components/oracle.swd.jre/1.1.8/1/DataF
iles/Expanded/linux/lib/classes.zip
LESSKEY=/etc/.less
LANGUAGE=en_US:en
LESSOPEN=|/usr/bin/lesspipe.sh %s
BROWSER=kfmclient openProfile webbrowsing
LESS=-MM
USER=oracle
LC_TIME=en_US
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;3
3;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;
32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.
tgz=01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lzh=
01;31:*.lha=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz
2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.jpg=01;35:*.jpeg=01;3
5:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.t
if=01;35:*.tiff=01;35:
THREADS_TYPE=native_threads
MACHTYPE=i586-mandrake-linux-gnu
KDE_MULTIHEAD=f
KDE_MULTIHEAD=false
HELP_BROWSER=kfmclient openProfile webbrowsing
THREADS_FLAG=native
MAIL=/var/spool/mail/oracle
INPUTRC=/etc/inputrc
GTK_RC_FILES=/etc/gtk/gtkrc:/usr/oracle/.gtkrc
XMODIFIERS=@im=none
LANG=en
JAVA_HOME=/mnt/cdrom/stage/Components/oracle.swd.jre/1.1.8/1/Data
Files/Expanded/linux
ORACLE_BASE=/usr/oraInventory
LC_NUMERIC=en_US
COLORTERM=
ORACLE_HOME=/usr/oracle
TMP=/usr/oracle/tmp
DISPLAY=localhost:0.0
LOGNAME=oracle
SHLVL=3
LC_CTYPE=en_US
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-
unix/1074
SHELL=/bin/bash
HOSTTYPE=i586
QT_XFT=0
OSTYPE=linux-gnu
HISTSIZE=1000
HOME=/usr/oracle
TERM=xterm
PATH=/bin:/usr/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/u
sr/X11R6/bin:/usr/games:/usr/oracle/bin
SECURE_LEVEL=3
LC_MONETARY=en_US
RPM_INSTALL_LANG=en_US:en
LC_COLLATE=en_US
LIBPATH=/mnt/cdrom/stage/Components/oracle.swd.jre/1.1.8/1/DataFi
les/Expanded/linux/lib/linux/native_threads
Libraries Loaded by the JVM
<main>
libjitc.so
libzip.so
Current Thread Details
"main" (TID:0x4032a2d8, sys_thread_t:0x804de98)
Native Thread State: ThreadID: 00000400 Reuse: 1 USER
PRIMORDIAL RUNNING
Native Stack Data : base: bfffef08 pointer bffdf764 used
(128932) free(-12196)
----- Monitors held -----
----- Native stack -----
Java_java_lang_System_initProperties_stub
invokeNativeMethod
invokeLazyNativeMethod
__irem_trap6
------ Java stack ------ () prio=5 *current
thread*
java.lang.System.initializeSystemClass(System.java)
Total Thread Count: 3
Active Thread Count: 3
JNI Thread Count: 0
Full thread dump:
"Async Garbage Collector" (TID:0x4032a238,
sys_thread_t:0x80dca78)
Native Thread State: ThreadID: 00000803 Reuse: 1 DAEMON
MONITOR WAIT
Native Stack Data : base: bf5ffb20 pointer bf5ff914 used
(524) free(116212)
----- Monitors held -----
----- Native stack -----
sysMonitorWait
sysThreadSleep
threadSleep
SetOrigArgs
sysThread_shell
pthread_detach
__clone
------ Java stack ------ () prio=1
"Finalizer thread" (TID:0x4032a288, sys_thread_t:0x80dc7f8)
Native Thread State: ThreadID: 00000402 Reuse: 1 DAEMON
MONITOR WAIT
Native Stack Data : base: bf7ffb20 pointer bf7ff988 used
(408) free(116328)
----- Monitors held -----
----- Native stack -----
sysMonitorWait - waiting on Finalize me queue lock
finalizeOnExit
sysThread_shell
pthread_detach
__clone
------ Java stack ------ () prio=1
"main" (TID:0x4032a2d8, sys_thread_t:0x804de98)
Native Thread State: ThreadID: 00000400 Reuse: 1 USER
PRIMORDIAL RUNNING
Native Stack Data : base: bfffef08 pointer bffdf758 used
(128944) free(-12208)
----- Monitors held -----
----- Native stack -----
Java_java_lang_System_initProperties_stub
invokeNativeMethod
invokeLazyNativeMethod
__irem_trap6
------ Java stack ------ () prio=5 *current
thread*
java.lang.System.initializeSystemClass(System.java)
System Monitor Status
Thread queue lock: unowned.
Name and type hash table lock: unowned.
String intern lock: unowned.
JNI pinning lock: unowned.
JNI global reference lock: unowned.
Zip lock: unowned.
BinClass lock: unowned.
Class loading lock: unowned.
Java stack lock: unowned.
Code rewrite lock: unowned.
Heap Lock: unowned.
Has finalization queue lock: unowned.
Finalize me queue lock: unowned.
Integer lock access-lock: unowned.
Monitor cache lock: unowned.
Monitor registry: unowned.
Object Monitor Status
OK
[oracle@localhost cdrom]$
=================================================================
=========
[email protected]
[email protected]I have Mandrake 8.0 on PII-600, 256 RAM. I used the downloaded
8.1.7. Edit JRE_LOCATION in Disk1/install/oraparam.ini to point
to your version of JRE 1.1.8 v3 (JRE from
http://www.backdown.org). Then try with NUMLOCK=OFF.
I just clicked the 'typical' installation. It failed at the end
and did not install the database manager. The error message was:
SIGGEV received at bfffea90 in
/u01/app/oracle/jre/1.1.8/lib/linux/native_threads/libjava.so
Process terminated
Writing stack trace to javacore30299.txt... OK
/u01/app/oracle/product/8.1.7/bin/dbassist: line 103: 30229
Segmentation fault $JRE_EXEC -Duser.dir=$USER_DIR -classpath
$CLASSPATH DBCreateWizard $ARGUMENTS
If you get beyond this point, let me know. Good luck! -
Oracle8i Release 2 (8.1.6) on Mandrake Linux 7.1
I am trying to install Oracle8i R2 on Linux Mandrake. I've got the Oracle8i EE CD. I have followed the pre-installation steps of creating the groups, user and updating the .bash_profile file for "oracle" user with all the env. variables. After, I execute runInstaller from the CD, I get the Universal Installer Welcome screen. Mouse clicks on About Oracle and Remove Installed products work fine and show message/dialog boxes. But Mouse clicks on the Help, Exit, Installed Products AND "NEXT" button have no effect. The screen remain their without taking to the next step of installation !!!
I have to exit the Universal installer using the Closing icon on the Window (top right corner).
Also, I tried "ps -ef" on the prompt after execting runInstaller. It shows around 8-10 process running under installer. Is there any known bug/issue for installter working on Mandrake linux ?
Any help/comments/assistance....?
Thanks and advance.
nullHi Lloyd,
I have a HP Pavilion/733MHz/128MRAM Box with Mandrake 7.1 and Win98 dual boot setup.
you mentioned that u were able to install Mandrake and Oracle on a Compaq box. Did you try re-installing Linux and Oracle on the HP box. I havent received any reply. I will try some Linux forum to raise this question.
Do let me know if you come across any solution/workaround...
Best Regards,
-Sameer Rao
<[email protected]>
null -
Stored procedure : how to call SP in sender JDBC adapter for mysql
HI friends ,
we have JDBC---->XI--
>SAP scenario. For some business requirement, we have to call STORED PROCEDURE , please let me know how to call SP in sender JDBC adapter for mysql .
Thanks
mojibHi Mojib,
Please create a sample stored procedure like this which contains select statement and in communication channel give
wite stored procedure name only to sql query statment and in update statement write <test>.
I am executing this stored procedure successfully.
Create Proc GetResultX As
Begin
Select * From TESTX
End
Execute statement for stored procedure is :
Exec GetResultX
Regards
Laxmi Bhushan Jha
Rewards point if found usful
I have given same answer to one of the same thread -
Java(TM) Plug-in 1.4.2_03 under Mandrake/Linux and Mozilla
I'm having problems getting applets to load/run using Mandrake/Linux 9.2 and Mozilla 1.6. Apparently the classes are failing to load.
about:plugins in Mozilla shows that it has the Java plugin loaded, but when I try to test it using one of the sample applets at http://java.sun.com/applets/jdk/1.4/demo/applets/Clock/example1.html, I get the errors shown below in the Java Console.
I have a link in my plugins directory linking to:
lrwxrwxrwx 1 tim tim 67 Jan 17 22:33 libjavaplugin_oji.so -> /usr/java/j2re1.4.2_03/plugin/i386/ns610-gcc32/libjavaplugin_oji.so*
I PRESUME I've got some sort of configuration error, but I'm unsure where to begin to look - any help will be greatly appreciated!
Tim
Java Console Error Message Log
Java(TM) Plug-in: Version 1.4.2_03
Using JRE version 1.4.2_03 Java HotSpot(TM) Client VM
User home directory = /home/tim
<snipped "help" reference message from console>
Stopping applet ...
Joining applet thread ...
Destroying applet ...
Disposing applet ...
Quiting applet ...
Joined applet thread ...
Finding information ...
Releasing classloader: sun.plugin.ClassLoaderInfo@110278e, refcount=0
Caching classloader: sun.plugin.ClassLoaderInfo@110278e
Current classloader cache size: 3
Done ...
setWindow: call before applet exists:16956179
Referencing classloader: sun.plugin.ClassLoaderInfo@110278e, refcount=1
setWindow: call before applet exists:16956179
setWindow: call before applet exists:16956179
Loading applet ...
Initializing applet ...
Starting applet ...
Connecting http://java.sun.com/applets/jdk/1.4/demo/applets/Clock/Clock.class with no proxy
Connecting http://java.sun.com/applets/jdk/1.4/demo/applets/Clock/Clock.class with cookie " "
Connecting http://java.sun.com/notfound.jsp?requrl=/applets/jdk/1.4/demo/applets/Clock/Clock.class&refurl=UserTypedURL with no proxy
Connecting http://java.sun.com/notfound.jsp?requrl=/applets/jdk/1.4/demo/applets/Clock/Clock.class&refurl=UserTypedURL with cookie " "
Connecting http://java.sun.com/applets/jdk/1.4/demo/applets/Clock/Clock/class.class with no proxy
Connecting http://java.sun.com/applets/jdk/1.4/demo/applets/Clock/Clock/class.class with cookie " "
Connecting http://java.sun.com/notfound.jsp?requrl=/applets/jdk/1.4/demo/applets/Clock/Clock/class.class&refurl=UserTypedURL with no proxy
Connecting http://java.sun.com/notfound.jsp?requrl=/applets/jdk/1.4/demo/applets/Clock/Clock/class.class&refurl=UserTypedURL with cookie " "
load: class Clock.class not found.
java.lang.ClassNotFoundException: Clock.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: http://java.sun.com/notfound.jsp?requrl=/applets/jdk/1.4/demo/applets/Clock/Clock/class.class&refurl=UserTypedURL
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.net.protocol.http.HttpUtils.followRedirects(Unknown Source)
at sun.plugin.cache.CachedFileLoader.download(Unknown Source)
at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
at sun.plugin.cache.FileCache.get(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception: java.lang.ClassNotFoundException: Clock.classTo determine if your browser can view applets, try
viewing the "Cubic" applet on the following page..
http://java.sun.com/docs/books/tutorial/2d/display/Cubi
.html
You will notice that you can manipulate the pattern of
the applet by dragging the colored squares. Thanks for the pointer - it does, indeed, work as expected.
It's a bummer that the "sample applets" are screwy, as that seems like a good place to go to confirm that you have everything configured right (well, it DID seem like a good place to go - it seems quite a bit less good now).
Thanks for the help,
Tim -
Install fails for Creator on Mandrake Linux with AMD64
I tried to install the new version of Creator update 1 on my Mandrake Linux 64 bit version and it fails to find my JVM.
I'm able test my JVM by checking the version but it still fails.
I tried the -is:javahome option ---- no difference.
Tried installing the 32 bit version of JVM 1.5 update 7 does not make a difference with is option.
The installation of pervious version of 2004 creator works fine.
Any clue as to what might be the issue.
Any assitance on this matter will be greatly appreciated.Can you post the install.log file under your installation directory? Also take a look at this page:
http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/index.jsp -
Oracle Install on Mandrake Linux 9.1 (Dell Laptop 600)
I have a full install of Oracle 10G running on a Dell Laptop using Mandrake Linux 9.1:
First I did an install of the OS, I built the swap file to be 2GIGs, the /oracle partition as 5GIGS and the /home partition as 25GIGS.
I made sure to choose the Development packages and the Office packages, I did not choose any of the WEB and other stuff.
As root, edit the file /etc/sysctl.conf. Add the following lines to the end of the file:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
As root, issue the following commands at a terminal:
groupadd oinstall
groupadd dba
useradd g oinstall G dba oracle
passwd oracle <supply new password>
You then need to set up the new users environment variables. Edit the file /home/oracle/.bashrc and add the following between the # User specific aliases and functions and the # Source global definitions lines. In Mandrake Linux all I did was edit the /etc/profile file and add the below at the end. This way all users get the added. Works like a charm.
ORACLE_SID=lx10g
ORACLE_BASE=/oracle
ORACLE_HOME=/oracle/10g
PATH=$ORACLE_HOME/bin:$PATH:.
export ORACLE_SID ORACLE_BASE ORACLE_HOME PATH
You can choose what you like for the ORACLE_SID: it represents what you will eventually call your database.
Make install directories, In my case, for example, I did this:
mkdir /oracle
mkdir /oracle/10g
chown -R oracle:oinstall /oracle
First when you try to run the Universal Installer do the following:
./runInstaller -ignoreSysPrereqs (this gets you by the error on the OS)
Then just follow the normal screens and at the end you should have a complete system. There is a bug in the installer and you will need to re-run the ./runInstaller and selct just the ISQLPlus* and it will then only re-install this package. It seems it misses it during the initial install. I also suggest downloading the Compaign CD and installing the APACHE and HTMDB using the same as above when running the ./runInstaller as everything else is already setup.check pre-requisites for a Linux OS here:
Installation Guide for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel and Sun Solaris Contents / Search / Index / PDF
http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
Remember that the OS has to be certified to install
Oracle sucessfully.
Joel P�rez -
Crystal Reports Server 2008 V1, RedHat Enterprise Linux, MySQL, ODBC
Iu2019m confused about connecting to an ODBC source from a report within CMC. Iu2019m a Unix guy; I donu2019t know much about Crystal reports, but Iu2019m working with a Crystal guy to get this thing working.
<br><br>
First, background: I have installed Crystal Reports Server 2008 V1 in RedHat Enterprise Linux (5.4), and itu2019s running just fine! Iu2019m using the included Tomcat application server, but Iu2019m storing CMS and Audit data our local running copy of MySQL (5.1.42). The RHEL install is native 32-bit (the only way I could get it to work), Crystal is storing and retrieving data from MySQL, The Central Management Console is responding to port 8080 over Tomcat, Iu2019m able to log in and see stuff, and so far, life is good.
<br><br>
Now, where Iu2019m stuck: the data weu2019re trying to build reports from <i>also</i> resides in this local Linux / MySQL install, and connecting to it from a report within CMC is where Iu2019m lost.
<br><br>
First, I successfully installed the unixODBC and MyODBC drivers in Linux. Iu2019m able to connect to MySQL successfully using the isql utility. Here are my conf files:
<br><br>
<pre class="jive-pre"><code class="jive-code jive-java">/etc/odbc.ini
[DSN_NAME]
Driver = MySQL ODBC 5.1 Driver
DATABASE = project_web_prod
DESCRIPTION = Project Description
UID = username
PWD = password
SOCKET = /var/lib/mysql/mysql.sock
/etc/odbcinst.ini
[MySQL ODBC 5.1 Driver]
Driver = /usr/lib/libmyodbc5.so
UsageCount = 1
</code></pre>
<br>
Again, this all works with isql (Iu2019ve even used both a socket connection, and port 3306, in odbc.ini).
<br><br>
Now, our Crystal guy uploads a report into the CMC. I go to <i>Folders -> <Project Folder></i>, right-click the report I want to test, click <i>Database Configuration</i>, and check the option <i>Use custom database login information specified here</i>. I select database driver <i>ODBC</i> from the dropdown, and type in the server, database, username, and password info. However, when I try to run the report, it fails to connect.
<br><br>
So, stupid question, can Crystalu2019s CMC use the system ODBC configuration options? (The ones stored in /etc). Because I saw an odbc.ini file in ~crystalinstalldir/bobje/. I edited it to match the contents of my /etc/odbc[inst].ini files, but to no avail. I saw that Crystal has itu2019s own ODBC engine, but it doesnu2019t support MyODBC driver, does it? I even tried hacking env.sh to use the system unixODBC library instead of the included one, but no luck.
<br><br>
So, in short, my question: how do I simply get reports in CMC to connect to a MySQL data source (using ODBC)?
<br><br>
Thanks so much! An answer to this question will save my day!
<br><br>Thank you, Efstratios, for the helpful reply!
So, I followed the directions in the PDF file you attached, and everything went smoothly. However, Iu2019m still not able to connect to ODBC within CMC.
Hereu2019s what I did:
<ul style="list-style-type:disc">
<li>Copied the unixODBC libraries over to <installdir>/bobje/enterprise120/linux_x86/odbc/lib</li>
<li>Removed MySQL ODBC connector 5.1, installed MySQL ODBC connector 3.51.</li>
<li>Edited <installdir>/bobje/defaultodbc.ini, added my DSN and MySQL library info as per the instructions (I have both an odbc.ini, and defaultodbc.ini, identical files, just to be safe)</li>
<li>Tested the connection using these libraries, this odbc.ini, and isql. Worked just fine</li>
</ul>
So, my problem seems to be in getting the CMC to actually <i>use</i> my ODBC setup!
Any other hints / things I could try?
When I right-click a report, and go to “Database Configuration,” which connection options should I use for the report? Iu2019ve tried both “Use original database logon information from the report,” and “Use custom database logon information specified here” (using the ODBC option from the drop-down menu). Either way, if I enter in the database, username, password, and then try to run the report (“Run Now”), I get this message in the History: “Failed - Information is needed before this report can be processed.”
Is there another place I could get a more helpful error message? Or is there, perhaps, another way I could test database connectivity from within CMC? I wish there were at least a “Test Database Connection” optionu2026 :P
Thanks so much for your help! -
Since JDBC is a bridge to connect Java and Oracle via ODBC.
However, in Linux, there is not ODBC. Can I still use JDBC in
linux to access Oracle?
nullStephen (guest) wrote:
: Since JDBC is a bridge to connect Java and Oracle via ODBC.
: However, in Linux, there is not ODBC. Can I still use JDBC in
: linux to access Oracle?
JDBC is NOT a bridge between JDBC and ODBC! Early versions of
JDBC might have used this to get a version out there for people
to use to code.
Oracle JDBC connects either thin (100% java) or OCI (via the
Oracle Client)
null -
Problem installing weblogic server 7.0 in Mandrake Linux 10.1
hi
i am very new to Mandrake Linux ..i have installed Mandrake Linux 10.1 in my machine ...the problem is that when i try i to install weblogic server 7.0 it gives some error
** Error during execution, error code = 11
my machine spec
* 512MB RAM
* 40GB HDD
* P4 2.8GHZ
can any one help me..
the weblogic server i downloaded from bea site its version is weblogic server 7.0 with jrockit (sp6)
regards
babuHi,
first of all, unfortunately, WebLogic Server is not supported under Mandrivia (use the right name ;-) ), so you should use Novell Suse or Redhat AS, check this list
Anyway, error code 11 should be related to permission issues, so you should check that the user you are using is allowed to write under the installation directory and under /var/log/
Could you kindly post the log messages?
Regards.
Antenore Gatta
Middleware Specialist
Hequa S.r.l
C.so Buenos Aires 77
20124 Milano
http://www.Hequa.it
Tel +39(0)267493078
Fax +39(0)267493079
Mobile +39 3481537897
______________________________________ -
Sun One / Win ME / Mandrake Linux
Okay, this is driving me nuts. I am running Windows ME on one partition on my box. I used to have forte installed a while ago, btu for some reason I got rid of it. Now I am doing something that I would like to use it as a resource for and I come to find out it is Sun One now. SO I dl it and I go to install and teh installer freezes while looking for J2SDK. So I uninstalled J2SDK and dl the most recent version and reinstalled it. Still does the same thing.
So here is my question: realizing that Sun one is not particularly supported on ME, is that what is causing the install to freeze? If not, do you know what the problem might be? And if Forte installed, why oh why wouldn't Sun One.
If ME is the problem, I have Mandrake Linux on another partition (Yeah, I'd love Red Hat, but it was free and I am broke, so it seemed like a good idea) and it seems that only Red hat is supported. Should I bother downloading and trying to install on Mandrake (I use KDE btw)?Hi,
I'm running on Mandrake 9.0 without any problems.
There is one anoying issue and thet is that the icons deliverd is in .ico format and I can't figure out how to use them on KDE 3.0
regards birger....
Okay, this is driving me nuts. I am running Windows ME
on one partition on my box. I used to have forte
installed a while ago, btu for some reason I got rid
of it. Now I am doing something that I would like to
use it as a resource for and I come to find out it is
Sun One now. SO I dl it and I go to install and teh
installer freezes while looking for J2SDK. So I
uninstalled J2SDK and dl the most recent version and
reinstalled it. Still does the same thing.
So here is my question: realizing that Sun one is not
particularly supported on ME, is that what is causing
the install to freeze? If not, do you know what the
problem might be? And if Forte installed, why oh why
wouldn't Sun One.
If ME is the problem, I have Mandrake Linux on another
partition (Yeah, I'd love Red Hat, but it was free and
I am broke, so it seemed like a good idea) and it
seems that only Red hat is supported. Should I bother
downloading and trying to install on Mandrake (I use
KDE btw)?
Maybe you are looking for
-
Windows can't find photoshop.exe
I had CS5, Worked well for like 1 month, then, I had this problem so I tried installing CS6 (I STILL HAVE CS5) and the same with CS6. Not only photoshop, I can't open any ADOBE's applications. PLEASE HELP ME!
-
12 powerbook or 14 ibook for Final cut?
which is a better for final cut express HD a 12 powerbook or a 14 ibook? which one should I buy (refurbished of course)
-
Develop mobile apps to connect with SharePoint
Hi all, I have a plan to implement SharePoint 2013 in my office. Meanwhile, our Business Development dept has a plan to gather prospect customer from mobile apps. I've been thinking is that possible to develop a mobile application whether using Windo
-
I need to make FireFox my defaulted web browser.
-
Bridge for mac says No Memory on xperia z1 compact!!!
Hi, I am experiencing a problem. I hope someone here can help. When I connect my device to my MacBook Pro the contents display ok, but it indicates that the device memory is 100% FULL. I have an Xperia Z1 compact.I have 3.14GB used of 11.79GB interna