jacq carballo

Ranch Hand
+ Follow
since Feb 10, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by jacq carballo

Hello!

I have a java class file whose methods i would be using in another application. The application being developed is under Visual Basic 6.0. Would there be a way to call the methods using VB 6.0? If yes, can you help me locate references to do this?

TIA.

Jacq
12 years ago
Hi! Anyone who can point me to a site which would contain freely downloadable application which could convert java source code or java class files to win32 executables?
Thanks.
Jacq
14 years ago
OS in which it will be installed is Windows 2K. The application will act as a start up service which will have to run after MS SQL Server 2000 starts running.
TIA.
14 years ago
Hi! I don't know if this is the right place to put this query but here goes...
Say, I have developed a simple Java application. The application is not a J2EE type of application but a simple application with database access. It will run in one machine only. I do not want the machine to run the application using the "java <appname>" but instead need that when it starts up, the java application will start up too. How can I achieve this?
Thanks a million in advance.
14 years ago
Oh, yeah. I forgot to put the quotation marks.
Anyway, thanks for the tip of separating both select statements.
jacq carballo
What is wrong with the following command string?
1 command = "select field1, field2 from table1 " +
2 "select fld1, fld2 from table2";
3
4 rs.executeQuery(command);
5
6 field1 = rs.getString(field1);
7 field2 = rs.getString(field2);
8 fld1 = rs.getString(fld1);
9 fld2 = rs.getString(fld2);
I get an error on line 8 saying that fld1 is an invalid column name.
What is the fix to it?
TIA
jacq carballo
Hi!
I just started out with JMS Programming. I have been trying out codes from the wrox book. I get the following error message:
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory. Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory
at java.net.URLClassLoader$1.run (URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:207)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at JMSLookup.main(JMSLookup.java:22)
What could be the possible cause. I have already included the following jar files in my classpath:
fscontext.jar, jms.jar, jndi.jar, imq.jar, and providerutil.jar
The code that caused the error is:
Context ctx = new InitialContext(prop);
15 years ago
hi!
has anyone tried using Sun One Message Queue? Can i just use JMS with MSMQ instead of the above?
tnx!
jacq carballo
15 years ago
Hello All!
After doing a query on a database, i do the following:
while (rs.next())
{
salvage everything from the current row.
move the current row to a master table
}
question:
what method should i use in order to select the current row and move it to the master table?
is there a short way aside from the following?
command = "insert into <master> " +
"( " +
"field1 " +
"field2 " +
"field3 " +
") " +
"values " +
"( " +
rs.getString("field1") + ", " +
rs.getString("field2") + ", " +
rs.getString("field3") + ", " +
") "
i know that there should be an api that has a method that would simply allow you to select the content of the whole row.
tia
jacq carballo
In addition to the previous post, i just want to know if there is a shorter way (an existing api or something similar in the standard api) aside from the following algo:
while length not equal to the expected length
{
add a zero to the left of the value
}
15 years ago
Hi!
Is there a short way of adding a lot of zeros in front of a string.
For example,
Original (int) Result (String)
8 000008
12 000012
12345 012345
C 00000C
TIA
jacq
15 years ago
This error came out when i called resultSet.next(). I do not know what could have caused it. Maybe someone could explain what just happened and how to take care of this error.
Thanks in advance.
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Ari
thmetic overflow error converting numeric to data type numeric.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(
Unknown Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSRequest.getRow(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplResultSet.positionCursor(Un
known Source)
at com.microsoft.jdbc.base.BaseResultSet.next(Unknown Source)
at Parse.uploadUsageRecord(ParseData.java:119)
at Parse.CheckData(ParseData.java:78)
at ParseData.main(ParseData.java:29)
Hi all!
According to my friend, you could get the schema of a flat file by reading it as if it were a database file under VB. I was just wondering if this is at all possible in Java using any of the existing standard APIs.
TIA
jacq carballo
hello!
i was wondering if there is a way to make the text in the pull-down menu colorful.
i tried using the <font color=""> tags between the text after the option tag like:
<select>
<option><font color="red">test1</font>
</select>
i've also tried to put the font tags before and after the select tags, but nothing happened.
i've tried looking for the answers in all the books i could get but no answer still. google was no help either.
would really appreciate it if someone could help.
tia
jacq
Is there a way for java to treat a text file as a database file using schema or property files?
tia
jacq