Warning I don´t understand while compiling-Prob with .jar... help plz?
Hello, While I compile my java file I get the :
I:\............. >javac ObjCreatorV1.java
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.After that : i get the:
I:\........................>javac -Xlint ObjCreatorV1.java
ObjCreatorV1.java:40: warning: [serial] serializable class ObjCreatorV1 has no definition of serialVersionUID
public class ObjCreatorV1 extends JFrame {
^
1 warningWhat does it mean?? It´s ok, I can still run it, and it´s just fine, but I´m wondering if that warning is the reason why I can´t make a .jar out of it.
Actually I create the .jar file but it doesn´t run, it just makes a ding noise, and nothing more.
Some help plz... =)
I just put
public static final long serialVersionUID = 1L; in all my classes and now I get the following....:
I:\Documents and Settings\Universidad\Mis documentos\ObjCreator v1.0>javac -Xlint ObjCreatorV1.java
.\Point.java:58: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\Cube.java:38: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\SimpleLine.java:33: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\Line.java:35: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\Pyramid.java:35: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\Cone2.java:80: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\Cylinder1.java:88: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\Plane.java:35: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\PlaneV.java:33: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\PlaneH.java:33: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\PlaneP.java:31: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\Parallelepiped.java:32: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
.\Prisma6.java:31: warning: [deprecation] readLine() in java.io.DataInputStream has been deprecated inLine=dis.readLine();
^
13 warningspfffff
I also tried to use
BufferedReader dis = new BufferedReader(new InputStreamReader(in));But that gives me errors that i can´t solve either...
help...... :S
Edited by: epp1227 on Mar 18, 2009 4:46 AM
Similar Messages
-
I don't understand what's happening with my Music. All the songs that I purchased, that were previously on my phone, now show up with a Cloud next to them, but I can't play them. If I touch the Cloud, it turns into a red square, acts like it's downloading (which I can see happening in iTunes), but never downloads. The Cloud just stays there.
I've sync'd my phone, I've turned it to "show all music" in Settings, I've drag and dropped the songs/albums onto my phone again. I feel like I've tried everything I've seen recommended, but nothing works.
I've purchased a lot of music from iTunes. It should be there. What's going on?
P.S. Same thing happening with my purchased books. Ugh.Once you successfully add you iTunes library to iTunes Match, you go to Settings>iTunes & App Store on your iOS device and turn on iTunes Match. Your iTunes Match library will then appear on your iOS device.
-
Hello,
I received this warning message, but I don't understand it. Can anyone tell me what's it about?
Warning 1073676294 occurred at VISA Read in SERIAL.vi->testrs232.vi.
Possible reasons:
VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the input count.
Thank you, merci, gracias, danke schön
JulienHi Julien,
The same thing happened to me and after a while I realize that I was not always sending the termination character (cariage return in my case) at the end of my strings.
Make sure you configure the COM port properly (read the device's documentation) and be sure to send the correct ending char every time you send a string to the device.
Message Edité par TiTou le 03-21-2006 01:35 PM
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!" -
Error while compile client! Please help
Hi everybody,
I am new to J2EE. I hav got application server and client in the same computer.
While compile client application to test the server part followint error is shown:
28-Feb-2007 10:36:05 com.sun.corba.ee.spi.logging.LogWrapperBase doLog
INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3122"
Caught an exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
NestedException: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:161)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:142)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
at bank._CustomerFacadeRemote_DynamicStub.createAccount(_CustomerFacadeRemote_DynamicStub.java)
at bankaccountclient.Main.insertInfo(Main.java:55)
at bankaccountclient.Main.<init>(Main.java:38)
at bankaccountclient.Main.main(Main.java:78)
Caused by: java.rmi.RemoteException: Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
NestedException: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:199)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:853)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:160)
at $Proxy22.createAccount(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1569)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:951)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:721)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:469)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1258)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:409)
BUILD SUCCESSFUL (total time: 4 seconds)
Please let me know the solution of the error!
And also if client and application server is in same mechine which interface must be used to talk client with session bean?
Please help me!1) It looks like you have an error in JDBC configuration.
The main string is "Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
Check out JDBC connection pools and resources.
2) If your beans and client there are at the same JVM you can use local interface, else use remote interface. -
Failure FRM-32029 while compiling Form with Forms Builder
Hi.
I have problem. I compile a form with Forms Builder from DevSuiteHome and get the failure:
"FRM-32029 Window WINDOW not found; canvas-section CG$LOVCAN" (I translate it, it´s not the original terms).
I google and search the forum and oracle page, but found nothing about this failure. In Forms-Builder itself is also nothing recorded about this problem.
Do someone know more about this error?
Thanks.Thanks inolau for answering.
The problem is, that I don´t have a documentation about the sourcecode and these forms worked under from 6i to 9i upgraded Oracle AS and DB servers. So the problem is not only "where is the WINDOW", than more "why doesn´t works it under a new 10g version and how get it working?".
That´s why I was searching for this not recorded error.
And I´m worry about that searching for the part of the sourcecode where I found the "WINDOW" is like looking for a needle in a haystack. ;) -
Error while compiling, please i need help
this error occured while i was compiling a source code, who can please tell me what to do?
ERROR: (Error : Invalid path, \bin\javac.exe -classpath C: -d C: C:\newjava.java )
THANK YOU!!!It sounds like \bin doesn't exist, which is just as well since it would be dumb to put javac in a \bin directory off the filesystem root. Something like "\jdk1.5.0_6\bin\j" might be more appropriate.
Where did you actually install the JDK? -
Iv been having multiple issues with my mac. This comes as a surprise as I rarely use it.
Symptoms-
Clicking noises
Slow
Unresponsive
(Error code 36)
Question mark folder
I used single user mode to try and repair the disk through utilities but the option wasn't available. I then verified the disk and it came up with few error messages
-invalid leaf record count
-invalid directory item
-found corrupt and needs to be repaired
Unfortunately I don't have an instillation disk, I didn't get one when I bought the computer. I don't know what else to do.If the Mac is running v10.7 Lion or v10.8 Mountain Lion ..
Startup your Mac while holding down the Command + R keys so you can access the built in utilities in OS X Recovery
From there you can repair the startup disk. -
I recentley bought a ipod touch 5.01,set all language to English.....every thing i view is in English except when i view (open) itunes or apps store it is in German, I live in England, I was born in England, and i speak only English. I want my itunes and apps store to open and display in English. I have messaged the apple help and telephoned the help, both was helpful but no matter what i do in setting (even in reset, which i've done) my ipod will keep reverting back to German in Itunes and Apps store. All other data in my ipod is in English........just the itunes and apps store grrrrrrrrrrrr.
Please help :-)You can only use the German iTunes/App store if you are located in Germany. The German store is in the German language.
-
Error while compiling javacode with native method using jni
im trying to call function in dll that is written in vc++ from java application.
For that i write a native method .the method name is StopDS1.
my native method is : public native DWORD StopDS1();
when compiling using javac i'm getting message like this:
testdss.java:4: cannot found symbol
symbol:class dword
location :class testdss
1errorDWORD isn't a Java type, therefore you cannot use it as one.
-
Problem 2 while compiling exiv2 with SolarisStudio
source: svn checkout svn://dev.exiv2.org/svn/trunk (Latest rev: 3020)
My platform: Fedora 17 64-bit
This following command works:
cmake -DCMAKE_CXX_FLAGS=-library=stlport4 -DCMAKE_CXX_COMPILER=/opt/oracle/solarisstudio12.3/bin/CC -DCMAKE_C_COMPILER=/opt/oracle/solarisstudio12.3/bin/cc .
But after that when I do make, I get the error:
Scanning dependencies of target exiv2lib
[ 17%] Building CXX object src/CMakeFiles/exiv2lib.dir/asfvideo.cpp.o
"/home/Wani/GSoC/exiv2-trunk/trunk/src/error.cpp", line 29: Error: Multiple declaration for rcsId.
1 Error(s) detected.
make[2]: *** [src/CMakeFiles/exiv2lib.dir/asfvideo.cpp.o] Error 2
make[1]: *** [src/CMakeFiles/exiv2lib.dir/all] Error 2
make: *** [all] Error 2
Content of error.cpp:
28 #include "rcsid_int.hpp"
29 EXIV2_RCSID("@(#) $Id: error.cpp 2681 2012-03-22 15:19:35Z ahuggel $")
Content of rcsid_int.hpp:
#ifndef RCSID_INT_HPP_
#define RCSID_INT_HPP_
#if !defined (EXIV2_RCSID)
#if defined(__clang__)
#define EXIV2_RCSID(id)
#elif defined(OS_SOLARIS)
#define EXIV2_RCSID(id) \
inline const char* getRcsId(const char*) { return id ; } \
const char* rcsId = getRcsId(rcsId); \
#else
#define EXIV2_RCSID(id) \
namespace { \
inline const char* getRcsId(const char*) { return id ; } \
const char* rcsId = getRcsId(rcsId); \
#endif
#endif
#endifI'm the person who got exiv2 v0.23 building from SVN using Studio 12.3 C++. I posted about this to the Exiv2 forum, in this thread
http://dev.exiv2.org/boards/3/topics/1177 here.
Don't bother trying to use the supplied configure script; it's a pain to hack on so it works with Studio, and the cmake option works much more nicely.
The one thing I would add is that the rcsId macro should be commented out entirely, or blocked out via the CLANG macro. -
I just need to be able to download apps and my phone keeps saying the security code is invalid which doesnt make sense because I enter everything correct and it's really fustrating I've been to the apple store I've called support and they can't seem to fix it! Can somebody please help me? I thought apple was suposta be easy to use :\
This can sometimes happen because there is a missmatch between the billing address entered on your iTunes account and the billing address from your bank records. See http://support.apple.com/kb/TS1646.
-
Got Error While Compiling Packages with TOAD (URGENT)
Dear Experts,
Please help me to resolve this erroe this is very criticla.
ORA-20000: You have insufficient privileges for an objects in this schema
ORA-06512: at "SYS.DBMS.UTILITY" LINE 422
ORA-06512: Line 1You should be connected to the user that owns the packages, or SYS.
-
Facetime not working
The updating in Pakistan may have caused removal of FaceTime. You can check by either:
Swipe down on the home screen so you get a search field at the top and keyboard, and type FaceTime and search...see if it finds it.
You can also go to Settings > General > Reset > Reset Home Screen Layout and if FaceTime is on the iPhone it will reappear. -
Prob with formula column plz help!!!!!
hi
iam working on a finance report
where there is a need for opening balance and closing balance colum, i have designed the column the out put comes but the prob is after displaying the opening balance closing balance it again displays a nil opening balance and closing balance for all the values given as input
its liek this
opening balance=0.00
closing balance=0.00
i have attached the formula which i have written pls help me wats wrong in the formula column
for opening balance
function CF_total_dr1Formula return Number is
begin
IF :cf_total_dr - :cf_total_cr > 0 THEN
RETURN(:cf_total_dr - :cf_total_cr);
ELSE
RETURN( 0 );
END IF;
end;
similarly for closing balance toocf_total_dr is again calculated using a formula.. similarly cf_total_dr
i have specified the formula below, again this debit balance is a formula column
function CF_total_drFormula return Number is
v_bal NUMBER;
BEGIN
v_bal := debit_balance(:p_from_date);
RETURN(v_bal);
END; -
Attribute warnings while compiling GMP
Hi,
I'm getting the following attribute warnings while compiling GMP with Sun Studio 12:
"../../gmp-impl.h", line 2810: warning: attribute "mode" is unknown, ignored
"../../gmp-impl.h", line 2810: warning: attribute parameter "QI" is undefined
"../../gmp-impl.h", line 2811: warning: attribute "mode" is unknown, ignored
"../../gmp-impl.h", line 2811: warning: attribute parameter "SI" is undefined
"../../gmp-impl.h", line 2813: warning: attribute "mode" is unknown, ignored
"../../gmp-impl.h", line 2813: warning: attribute parameter "DI" is undefined
Is there some special way that these attributes need to be handled? The build completed ok, but I'd like to know if I needed to set a #define somewhere. I couldn't find anything specific to Sun Studio about this.
Thanks.
-John
John Center
Villanova UniversityI noticed in GMP 4.2.4 that there was a flag for attribute const (__GMP_NO_ATTRIBUTE_CONST_PURE), but configure tests for all the others & claims that they all are supported:
checking whether gcc __attribute__ ((const)) works... yes
checking whether gcc __attribute__ ((malloc)) works... yes
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking whether gcc __attribute__ ((noreturn)) works... yes
I'm not sure how these tests are conducted, but they clearly don't work with Sun Studio:
configure:26279: checking whether gcc __attribute__ ((const)) works
configure:26300: cc -xc99=%all -c -g -xs -fast -fsimple=1 -fns=no -xtarget=ultra
T1 -xarch=sparcvis2 -m64 -mt -xipo -xcode=pic32 -xpagesize=default -xlic_lib=sun
perf -I/opt/gnu/include -I/opt/local/include -I/usr/sfw/include -I/usr/include
conftest.c >&5
configure:26306: $? = 0
configure:26310: test -z
|| test ! -s conftest.err
configure:26313: $? = 0
configure:26316: test -s conftest.o
configure:26319: $? = 0
configure:26331: result: yes
configure:26341: checking whether gcc __attribute__ ((malloc)) works
configure:26350: cc -xc99=%all -g -xs -fast -fsimple=1 -fns=no -xtarget=ultraT1
-xarch=sparcvis2 -m64 -mt -xipo -xcode=pic32 -xpagesize=default -xlic_lib=sunper
f -I/opt/gnu/include -I/opt/local/include -I/usr/sfw/include -I/usr/include -c
conftest.c >conftest.out 2>&1
configure:26353: $? = 0
configure:26367: result: yes
configure:26377: checking whether gcc __attribute__ ((mode (XX))) works
configure:26398: cc -xc99=%all -c -g -xs -fast -fsimple=1 -fns=no -xtarget=ultra
T1 -xarch=sparcvis2 -m64 -mt -xipo -xcode=pic32 -xpagesize=default -xlic_lib=sun
perf -I/opt/gnu/include -I/opt/local/include -I/usr/sfw/include -I/usr/include
conftest.c >&5
"conftest.c", line 63: warning: attribute "mode" is unknown, ignored
"conftest.c", line 63: warning: attribute parameter "SI" is undefined
configure:26404: $? = 0
configure:26408: test -z
|| test ! -s conftest.err
configure:26411: $? = 0
configure:26414: test -s conftest.o
configure:26417: $? = 0
configure:26429: result: yes
configure:26439: checking whether gcc __attribute__ ((noreturn)) works
configure:26460: cc -xc99=%all -c -g -xs -fast -fsimple=1 -fns=no -xtarget=ultra
T1 -xarch=sparcvis2 -m64 -mt -xipo -xcode=pic32 -xpagesize=default -xlic_lib=sun
perf -I/opt/gnu/include -I/opt/local/include -I/usr/sfw/include -I/usr/include
conftest.c >&5
configure:26466: $? = 0
configure:26470: test -z
|| test ! -s conftest.err
configure:26473: $? = 0
configure:26476: test -s conftest.o
configure:26479: $? = 0
configure:26491: result: yes
Notice the tests for "mode", which I originally asked about here, issues a warning. But because it doesn't fail outright, it assumes it is supported. Why the others do not even issue a warning, I don't understand.
Thanks.
-John
Maybe you are looking for
-
Recently WebEx became Jabber. Two of our users (out of 12) get the message "Cannot connect to server" when they try to open jabber. All other users have no issues.
-
Deploying forms to the Application Server
We are about to use SCM to store our forms and reports. We also run application server AS10g. My question is: Is it possible to deploy forms through scm to the application server with out using the file system?
-
I only want to show daytime hours. Can I set on iPad?
-
Changing Customer recon account in Customer Master
Hello everyone, I have come across an issue and I would sincerely appreciate some help. Points available. In the Sandbox, under the Customer Master, I have a customer (let's call it Customer # 55). The reconciliation account defined in the Acct Mange
-
Intall Error with No Helpful Information!!!
SO, I am doing the normal thing and following iTunes instructions to download the update. It takes me to the website and I enter the email address, yada yada yada. Then I get a message saying "Your Current Security Settings Do Not Allow This FIle to