Java programming Linux
Hi all.I get an interesting taks - a programm cli for UNIX base system. No matter what he must do, in this important topic that it should support Linux pipelining, for example can run "ls |" use it less", but of course program of specific orders, but support this form of orders. And the Java language.
I'm new on Linux and Linux programming, but try to read as much as possible, please excuse me if I said sth wrongly. :-)
OK, I get this task and start thinking. First idea was:
1. I get a table of command line commands in args [].
2. then just cut chain in pieces using the symbol "|" and analyse one by one.
Idea was not bad, but a man who gie me this task (this is a kind of traning for me), said that I do it way wornd - unix shell support pipelining for my program, but the program needs to be done in a specific way.
OK, I'm starting to read on linux, linux ipc and api pipes. Find examples in C++, where programm to create a child process (using pipe (), fork parent and child processes begin to send information using pipes. If I understand correctly this is what is meant in the words "special way".
I need an adviser to expirenced programmers. How do I programm pipelining? As far as I understand I have no need to analyze all the command line and children in parties to ' | ', I should just I do program that can run any possible command in single and add support for linux pipilining and shell will send commands to my show by its path without my separate. Am I wrong? If so, I still do not follow what I would add to program to the shell allow use pipelining?
sphinks wrote:
So I should do 2 method works with all types of entry.
In this casejava myProgram "filename"
I will exercise my sth like this:
FileInputStream fis = new FileInputStream(args[0]); ...
In this case
cat "filename"|java myProgram
You talk about your program to make his entrance to one of two different sources. Is it it reads a file, either he read it System.in. It's not uncommon; a lot of unix programs that. For example, cat, grep and sed all do. If you provide a file name, they read from this file. Otherwise, they read from stdin. So you deal with the command line, and it indicates the playback of a file, you open this file and read it if you read from System.in.
Completely separate from that is what others have already said: If your program is read from stdin (System.in), then it don't know or care if this flow is coming directly from the console and passing along what the user types, or if it is channeled through the output of another process, or if it is redirected from a file or here - doc. Piping and redirection are handled by the shell, and your program is totally unaware of them. It simply reads System.in.
In addition, make sure you understand what is the same and what is different about the following:
grep foo x.txt
vs.
cat x.txt | grep foo
vs.
grep foo < x.txt
or in the case of your program
java -cp . MyClass x.txt
vs.
cat x.txt | java -cp . MyClass
vx.
java -cp . MyClass < x.txt
Edited by: jverd April 28, 2011 10:35
Edited by: jverd April 28, 2011 10:35
Tags: Java
Similar Questions
-
Remove bit 32 and 64 java programs? Experts say that there is still no 'solution '.
Homeland Security alerted to disable Java programs on your computer. I deleted everything that he saw Java and Oracle... When is it safe to reinstall Java 32 and 64 bit... and is it recommended to do anyway?
Hello
If you need Java just turn off until needed. If you do not use Java, you can
uninstall it.How can I disable Java in my web browser?
http://www.Java.com/en/download/help/disable_browser.XMLI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
Hey guys, I'm having a problem with a java program that cause my computer to freeze when I open the program. The computer is running Windows XP. The program I use is the specific work for my work. Really no one else using this program except my business, it is manufactured by our company. Yes, I should ask them what the problem is, but they eventually give a new computer, which is a huge pile of * and end by removing important information and programs on my computer that they will not re - install (programs are locked on their license key that they don't tell anyone) is there a way you guys can help me solve what's happening? It's really important for me to get this program to work correctly since it is my work that revolves around it. The program opens, but it's like a 50-50 chance. I really appreciate it!
Hello
Thanks for the reply.
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.
http://social.technet.Microsoft.com/forums/en-us/category/Windowsxpitpro
It will be useful.
Let us know if you encounter problems with Windows in the future. We will be happy to help you.
-
9550 java programs Simulator does not
I have eclipse Build id: 20100218-1602
with BlackBerry_JDE_PluginFull_1.1.2.201003212304 - 12.exe installed.
using the 9550 Simulator.
I brought samples of BB in my workspace and then tried some on my 9550 Simulator, but all I get is the spinning hourglass and then a black screen. If I click on the screen, it goes to the main BB screen with messages, e-mail, sms, contacts, etc..
The Simulator, I also tried file > load Java program and chosen a cod file that is made. I will get a stopwatch of spinning and then be returned to the main screen of BB again.
The apps that I tried: HelloWorldDemo and GPSDemo.
Any ideas on what I could do to fix this or help out more? I'm surprised that I get no error of sorts on the BB. Are there permissions or something that needs to be fixed? For HelloWorld? hahaha!
Have you tried to check the download folder to see if they appear in?
-
Where blackBerry Smartphones on my Berry B Curve 8330 to activate THE Java program?
My CURVE 8330 B Berry model a JAVA programming but I had recently another program to tell me that Java is NOT enabled, where and how can I go into the phone to put the program in Java? Please help; Sincerely, Charles PS had my curve only about a week or so now todays date Sunday Jan.25, 2009!
There is no 'turning java' on the BlackBerry.
- the BlackBerry smartphone uses a Java-based operating system.
- the BlackBerry smartphone can use applications developed in Java (or J2ME like any mobile phone or special files for devices BlackBerry ALX)
- the phone smart BlackBerry with a browser that can do JavaScript and not Java applets.
Question is: why do you think that you need Java?
-
I am using windows 7 64 bit home premium I installed ms office 2007 and did all the settings.
but I am unable to connect to the Access database in java program.it shows error database connection driver not installed.
Please give me the solution...Hello
I suggest you to ask your question about Java programming forums on the subject.
https://forums.Oracle.com/Forums/Forum.jspa?forumid=922
You can also ask your question on the forums to access.
http://answers.Microsoft.com/en-us/Office/forum/access?page=1&tab=all&TM=1349633636662
-
Cannot find 7u72 Java for Linux 32 bit
I downloaded both jre and the jdk 7u72 Java for 32-bit Linux from here: (Java Archive downloads - Java SE 7), but when I unzip and unpack, and run java-version, he says that it is version 7u65.
How can I get Java for Linux 32-bit 7u72?
Are you sure that you are calling the correct 'java' executable (try 'which java' and check your PATH environment variable)?
I downloaded jre-7u72-linux - http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jre-7u72-oth-JPR i586.tar.gz
(for some reason it was downloaded with the extension '.gz', not '. ') tar.gz') and it is the correct version:
$ mv jre-7u72-linux-i586.gz jre-7u72-linux-i586.tar.gz $ tar xvzf jre-7u72-linux-i586.tar.gz $ cd jre1.7.0_72/bin/ $ ./java -version java version "1.7.0_72" Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) Server VM (build 24.72-b04, mixed mode)
-
To run the Java program after logging
Hi all
I need to run a Java program after the filing of a document by a user.
Is it possible to do?
Any pointer and documentation to this will be really useful.
Thank you and best regards,
Nitin
Hi Nitin,
1 RIDC API Developer Guide - http://docs.oracle.com/cd/E10316_01/ContentIntegration/ridc/ridc-developer-guide.pdf
2 jARs - idcserver.jar should suffice the need the other jars - idcloader.jar, idcupgrade.jar, jspserver.jar (these pots are available in the files of the installation itself -
\Oracle_ECM1\ucm\idc\jlib) 3. I was talking about DynamicPrefix example in the HowToCompoment. You can also get this installed separately if it is not installed yet. This component will change the AutoNumberPrefix for recently checked in content depending on the Type of content. The user can specify what prefix must be used for Types of content with a simple configuration file, and during the recording, the name content must be generated based on this prefix and a sequential number.
The file 'data_access_environment.cfg' contains all of the data on what will be the prefixes for each type of document. You can add or edit this file, and changes will occur when restarting.
This element shows:
- Filters with custom Java code
HTH
-Anand
-
java program have main method
I note that this issue is still marked as "no response." Not sure if this is due to inactivity during the holiday season, or if there is still confusion. Let me throw in an another wrinkle: If the JAVA virtual machine requires a main() method to launch a program, your code may or may not be liable for this method. In a single normal stand, application of line control, Yes, you do have to provide a main method. But there are other common scenarios where you do not have. If any of these scenarios apply to you, don't waste time searching through the code to the main method, because you won't find it.
1. web Applications. They often run under a servlet that calls / invokes the application to manage applications for individual customers (e.g. Wicket). In this scenario, the Web application acts as a "listener". (To complicate things even more, the servlet runs inside a parent container, such as Tomcat). The bottom line is, however, that your application itself will have a main() method. Because of some top-level code.
2. parent controllers. Some frameworks (Spring Batch comes to mind) provide the main method and call the individual portions of your code to execute the steps, tasks, etc. In this scenario, you will not see a main() method, because it is "hidden" in the parent layer.
There are probably other scenarios as well where the location of the main method is not obvious. These are just two of the most common.
-
ORA-28000 in Java program so that the account is not actually locked
Hi all
We received the error ORA-28000: the account is locked in the Java program that connects to Oracle.
But the account is not locked out, because we can connect using Oracle SQL Developer.
What can be wrong?
I'd be willing to bet my bottom dollar that you connect not the same account in the database even when you connect through SQL Developer the Java application to connect to the. There may be a difference in configuring AMT that use two tools which makes it look like they should be connected to the same database. Maybe the Java application does not use the username you want, etc.
You have enabled auditing for successful and connections failed to this database to see if you see the connections and they use the same account?
I guess it is possible that you have found a bug that should be reported to Oracle Support where an incorrect error message is returned. But it is much more likely that Oracle is right and you have made a mistake.
Justin
-
How to have an Oracle procedure send and receive the value of a java program.
The procedure below is the place within a package. This "get_extract_ready_headers" procedure to select the columns store_number, terminal_number, tran_number, tran_date, cust_id in the REX_HEAD_EXTRACT of source table. This information is selected in a ref cursor The data were field cust_id which is encrypted. How can I change the get_extract_ready_headers procedure and accomplish 2 things?
1. make this procedure the "cust_id" reading the table source and send the value of a Java program "getheaderinfo" (this java program decrypts the cust_id field).
2. when we get the value unencrypted to the Java program, make the procedure to accept this decrypted value and use it to update the CUST_ID to the table TRAN_HEAD table value target. I use Oracle 11.2.0.2 and TOAD 10.5.1.3.
-The code of procedure
-Table Structure for the table source REX_HEAD_EXTRACTPROCEDURE get_extract_ready_headers (p_records OUT SYS_REFCURSOR) IS BEGIN OPEN p_records FOR SELECT store_number, terminal_number, tran_number, tran_date, cust_id FROM REX_HEAD_EXTRACT; END;
-Create table DDL for the target TRAN_HEAD tableCREATE TABLE REX_HEAD_EXTRACT ( REX_SEQ_NBR NUMBER(20), REVISION_NUMBER NUMBER, DAY NUMBER(3), RESA_TRAN_SEQ_NO NUMBER(20), BUSINESS_DATE DATE, TRAN_SEQ_NBR NUMBER(12), ORG_NUMBER NUMBER, STORE_NUMBER NUMBER, TRAN_DATE DATE, TERMINAL_NUMBER NUMBER, TRAN_NUMBER NUMBER, TRAN_TIME DATE, BATCH_NUMBER VARCHAR2(8 BYTE), BATCH_TYPE VARCHAR2(4 BYTE), TRAN_TYPE VARCHAR2(4 BYTE), SUB_TRAN_TYPE VARCHAR2(4 BYTE), CLERK_CODE VARCHAR2(15 BYTE), TRAN_TAXABLE_AMOUNT NUMBER(12,2), TRAN_TAX_TOTAL NUMBER(12,2), TRAN_GROSS_TOTAL NUMBER(12,2), COUP_TOTAL NUMBER(9,2), MKD_TOTAL NUMBER(9,2), EMPLOYEE_NUMBER VARCHAR2(15 BYTE), EMPLOYEE_NAME VARCHAR2(40 BYTE), TRAN_ALTTAXABLE_AMOUNT NUMBER(12,2), TRAN_ALTTAX_TOTAL NUMBER(12,2), SALE_AMOUNT NUMBER(9,2), RETURN_AMOUNT NUMBER(9,2), RETURNED_AMOUNT NUMBER(9,2), NETCASH NUMBER(12,2), TENDER_CODE VARCHAR2(4 BYTE), MULT_RCPT VARCHAR2(1 BYTE), SPLIT_TENDER VARCHAR2(1 BYTE), RTN_WITH_PURCHASE VARCHAR2(1 BYTE), RTN_WITH_RCPT VARCHAR2(1 BYTE), REASON_CODE VARCHAR2(4 BYTE), PASSWORD VARCHAR2(10 BYTE), RINGTIME DATE, CUST_NUMBER VARCHAR2(12 BYTE), CUST_ID VARCHAR2(50 BYTE), ZIP_CODE NUMBER, POSTAL_CODE VARCHAR2(9 BYTE), PV_TIME_LAPSE NUMBER, ORIG_STORE_NBR NUMBER, ORIG_TRAN_DATE DATE, ORIG_TRAN_TYPE VARCHAR2(4 BYTE), ORIG_TERM_NBR NUMBER, ORIG_TRAN_NBR NUMBER, ORIG_SALE_AMT NUMBER(12,2), ORIG_TENDER_CODE VARCHAR2(4 BYTE), ORIG_CLERK_CODE VARCHAR2(15 BYTE), PREV_TRAN_TYPE VARCHAR2(4 BYTE), PREV_SUB_TRAN_TYPE VARCHAR2(4 BYTE), GIFT_REGISTRY_ID VARCHAR2(25 BYTE), NO_OF_ITEMS NUMBER, TAX_EXEMPT_ID VARCHAR2(18 BYTE), TRAN_RINGTIME NUMBER, AUDITED VARCHAR2(1 BYTE), BATCH_VERSION NUMBER(9,2), BATCH_SOURCE VARCHAR2(5 BYTE), CREATE_DATE DATE, CREATE_ID VARCHAR2(32 BYTE), CREATE_PROC VARCHAR2(32 BYTE), MOD_DATE DATE, MOD_ID VARCHAR2(32 BYTE), MOD_PROC VARCHAR2(32 BYTE), TERMINAL_GROUP NUMBER, USER_DEF_1 NUMBER, USER_DEF_2 NUMBER, USER_DEF_3 NUMBER, USER_DEF_4 NUMBER(12,2), USER_DEF_5 NUMBER(12,2), USER_DEF_6 NUMBER(12,2), USER_DEF_7 VARCHAR2(50 BYTE), USER_DEF_8 VARCHAR2(50 BYTE), USER_DEF_9 VARCHAR2(50 BYTE), MANAGER_NUMBER VARCHAR2(15 BYTE), MANAGER_REASON_CODE VARCHAR2(10 BYTE), MANAGER_SWIPED VARCHAR2(1 BYTE), PHONE_NO NUMBER(11), KCPOS_KTH_USER_101 NUMBER, KCPOS_KTH_USER_102 NUMBER, KCPOS_KTH_USER_103 NUMBER, KCPOS_KTH_USER_104 NUMBER, KCPOS_KTH_USER_105 NUMBER, KCPOS_KTH_USER_106 NUMBER, KCPOS_KTH_USER_107 NUMBER, KCPOS_KTH_USER_108 NUMBER, KCPOS_KTH_USER_109 NUMBER, KCPOS_KTH_USER_110 NUMBER, KCPOS_KTH_USER_201 NUMBER(12,2), KCPOS_KTH_USER_202 NUMBER(12,2), KCPOS_KTH_USER_203 NUMBER(12,2), KCPOS_KTH_USER_204 NUMBER(12,2), KCPOS_KTH_USER_205 NUMBER(12,2), KCPOS_KTH_USER_206 NUMBER(12,2), KCPOS_KTH_USER_207 NUMBER(12,2), KCPOS_KTH_USER_208 NUMBER(12,2), KCPOS_KTH_USER_209 NUMBER(12,2), KCPOS_KTH_USER_210 NUMBER(12,2), KCPOS_KTH_USER_301 VARCHAR2(50 BYTE), KCPOS_KTH_USER_302 VARCHAR2(50 BYTE), KCPOS_KTH_USER_303 VARCHAR2(50 BYTE), KCPOS_KTH_USER_304 VARCHAR2(50 BYTE), KCPOS_KTH_USER_305 VARCHAR2(50 BYTE), KCPOS_KTH_USER_306 VARCHAR2(50 BYTE), KCPOS_KTH_USER_307 VARCHAR2(50 BYTE), KCPOS_KTH_USER_308 VARCHAR2(50 BYTE), KCPOS_KTH_USER_309 VARCHAR2(50 BYTE), KCPOS_KTH_USER_310 VARCHAR2(50 BYTE), KCPOS_KTH_USER_401 DATE, KCPOS_KTH_USER_402 DATE, KCPOS_KTH_USER_403 DATE, DISC_TOTAL NUMBER(9,2) ) CREATE INDEX REX_HEAD_EXTRACT_NDX ON REX_HEAD_EXTRACT (REX_SEQ_NBR, REVISION_NUMBER, STORE_NUMBER, TRAN_DATE, TERMINAL_NUMBER, TRAN_NUMBER)
-SamplesCREATE TABLE NAVISTOR.KCPOS_TRAN_HEADER_BASE ( TRAN_SEQ_NBR NUMBER(12), ORG_NUMBER NUMBER, STORE_NUMBER NUMBER, TRAN_DATE DATE, TERMINAL_NUMBER NUMBER, TRAN_NUMBER NUMBER, TRAN_TIME DATE, BATCH_NUMBER VARCHAR2(8 BYTE), BATCH_TYPE VARCHAR2(4 BYTE), TRAN_TYPE VARCHAR2(4 BYTE), SUB_TRAN_TYPE VARCHAR2(4 BYTE), CLERK_CODE VARCHAR2(15 BYTE) NOT NULL, TRAN_TAXABLE_AMOUNT NUMBER(12,2), TRAN_TAX_TOTAL NUMBER(12,2), TRAN_GROSS_TOTAL NUMBER(12,2), COUP_TOTAL NUMBER(9,2), MKD_TOTAL NUMBER(9,2), EMPLOYEE_NUMBER VARCHAR2(15 BYTE), EMPLOYEE_NAME VARCHAR2(40 BYTE), TRAN_ALTTAXABLE_AMOUNT NUMBER(12,2), TRAN_ALTTAX_TOTAL NUMBER(12,2), SALE_AMOUNT NUMBER(9,2), RETURN_AMOUNT NUMBER(9,2), RETURNED_AMOUNT NUMBER(9,2), NETCASH NUMBER(12,2), TENDER_CODE VARCHAR2(4 BYTE), MULT_RCPT VARCHAR2(1 BYTE), SPLIT_TENDER VARCHAR2(1 BYTE), RTN_WITH_PURCHASE VARCHAR2(1 BYTE), RTN_WITH_RCPT VARCHAR2(1 BYTE), REASON_CODE VARCHAR2(4 BYTE), PASSWORD VARCHAR2(10 BYTE), RINGTIME DATE, CUST_NUMBER VARCHAR2(12 BYTE), CUST_ID VARCHAR2(50 BYTE) ENCRYPT USING 'AES256' NO SALT, ZIP_CODE NUMBER, POSTAL_CODE VARCHAR2(9 BYTE), PV_TIME_LAPSE NUMBER, ORIG_STORE_NBR NUMBER, ORIG_TRAN_DATE DATE, ORIG_TRAN_TYPE VARCHAR2(4 BYTE), ORIG_TERM_NBR NUMBER, ORIG_TRAN_NBR NUMBER, ORIG_SALE_AMT NUMBER(12,2), ORIG_TENDER_CODE VARCHAR2(4 BYTE), ORIG_CLERK_CODE VARCHAR2(15 BYTE), PREV_TRAN_TYPE VARCHAR2(4 BYTE), PREV_SUB_TRAN_TYPE VARCHAR2(4 BYTE), GIFT_REGISTRY_ID VARCHAR2(25 BYTE), NO_OF_ITEMS NUMBER, TAX_EXEMPT_ID VARCHAR2(18 BYTE), TRAN_RINGTIME NUMBER, AUDITED VARCHAR2(1 BYTE), BATCH_VERSION NUMBER(9,2), BATCH_SOURCE VARCHAR2(5 BYTE), CREATE_DATE DATE, CREATE_ID VARCHAR2(32 BYTE), CREATE_PROC VARCHAR2(32 BYTE), MOD_DATE DATE, MOD_ID VARCHAR2(32 BYTE), MOD_PROC VARCHAR2(32 BYTE), TERMINAL_GROUP NUMBER, USER_DEF_1 NUMBER, USER_DEF_2 NUMBER, USER_DEF_3 NUMBER, USER_DEF_4 NUMBER(12,2), USER_DEF_5 NUMBER(12,2), USER_DEF_6 NUMBER(12,2), USER_DEF_7 VARCHAR2(50 BYTE), USER_DEF_8 VARCHAR2(50 BYTE), USER_DEF_9 VARCHAR2(50 BYTE), MANAGER_NUMBER VARCHAR2(15 BYTE), MANAGER_REASON_CODE VARCHAR2(10 BYTE), MANAGER_SWIPED VARCHAR2(1 BYTE), PHONE_NO NUMBER(11), KCPOS_KTH_USER_101 NUMBER, KCPOS_KTH_USER_102 NUMBER, KCPOS_KTH_USER_103 NUMBER, KCPOS_KTH_USER_104 NUMBER, KCPOS_KTH_USER_105 NUMBER, KCPOS_KTH_USER_106 NUMBER, KCPOS_KTH_USER_107 NUMBER, KCPOS_KTH_USER_108 NUMBER, KCPOS_KTH_USER_109 NUMBER, KCPOS_KTH_USER_110 NUMBER, KCPOS_KTH_USER_201 NUMBER(12,2), KCPOS_KTH_USER_202 NUMBER(12,2), KCPOS_KTH_USER_203 NUMBER(12,2), KCPOS_KTH_USER_204 NUMBER(12,2), KCPOS_KTH_USER_205 NUMBER(12,2), KCPOS_KTH_USER_206 NUMBER(12,2), KCPOS_KTH_USER_207 NUMBER(12,2), KCPOS_KTH_USER_208 NUMBER(12,2), KCPOS_KTH_USER_209 NUMBER(12,2), KCPOS_KTH_USER_210 NUMBER(12,2), KCPOS_KTH_USER_301 VARCHAR2(50 BYTE), KCPOS_KTH_USER_302 VARCHAR2(50 BYTE), KCPOS_KTH_USER_303 VARCHAR2(50 BYTE), KCPOS_KTH_USER_304 VARCHAR2(50 BYTE), KCPOS_KTH_USER_305 VARCHAR2(50 BYTE), KCPOS_KTH_USER_306 VARCHAR2(50 BYTE), KCPOS_KTH_USER_307 VARCHAR2(50 BYTE), KCPOS_KTH_USER_308 VARCHAR2(50 BYTE), KCPOS_KTH_USER_309 VARCHAR2(50 BYTE), KCPOS_KTH_USER_310 VARCHAR2(50 BYTE), KCPOS_KTH_USER_401 DATE, KCPOS_KTH_USER_402 DATE, KCPOS_KTH_USER_403 DATE, DISC_TOTAL NUMBER(9,2), RTA_RTN_AUTCOD VARCHAR2(4 BYTE), RTA_RTN_COMMID NUMBER, RTA_RTN_EVNTID NUMBER, RTA_RTN_QTY NUMBER, RTA_RTN_RCPT_SCAN VARCHAR2(1 BYTE), RTA_RTN_REFUND_AMT NUMBER(9,2), RTA_RTN_TYPE_CODE VARCHAR2(4 BYTE), RTA_RTN_WITH_RCPT VARCHAR2(1 BYTE), RTA_RTN_COUNT INTEGER, SDEDVAL1 VARCHAR2(50 BYTE) )
REX_SEQ_NBR,REVISION_NUMBER,DAY,RESA_TRAN_SEQ_NO,BUSINESS_DATE,TRAN_SEQ_NBR,ORG_NUMBER,STORE_NUMBER,TRAN_DATE,TERMINAL_NUMBER, TRAN_NUMBER,TRAN_TIME 478,1,11,12024005,6/11/2012,,1,692,6/11/2012,155,5,6/11/2012 12:57:17 PM, 479,1,11,12024006,6/11/2012,,1,692,6/11/2012,155,6,6/11/2012 2:01:51 PM, 480,1,11,12024007,6/11/2012,,1,692,6/11/2012,155,7,6/11/2012 2:47:10 PM
Then you describe two stored procedures separated. One that has an OUTPUT parameter which is a SYS_REFCURSOR (that you posted initially). And will need you a second procedure that takes as a parameter IN the decrypted CUST_ID and whatever: key (s) is required for the UPDATE is generated.
Justin
-
Hello
I created a java program using eclipse... How package and run the program under windows or Unix?
Thank youRight click on the project in the Package Explorer. In the menu drop-down run as-> a run Configuration. Click the new button. In the name box, choose a name for your configuration. Make sure that the right project is illustrated in the area of the project. If this is not the case click on the Browse button and select the right project. Make sure that the right main class is listed in the main class field. If this is not the case click on the Browse button and select the correct class. Click on apply. Click Close. In the context menu, click Export. Double-click the Java folder, so it goes down. Double-click the executable JAR file. In the launch Configuration drop-down list box, make sure that the right project and main class appears in this form: name of principal name Configuration class. Click the Browse button to set the location that you save the Jar file. Click Finish. Now, to find the JAR file and double-click it to start the program.
-
Need to capture logs the server java program
Hello
I need to capture all the logs from the server weblogic through a java program. My application is deployed inside the server and I need a java program within the application that can capture all the logs from the server and store them in a string or any other data variable, so that I can be able to reassign logs to another program.
Any help would be much appreciated.
Thank you
Abhay
Published by: user10613279 on July 26, 2011 04:02Hello
You can create your own message handler: http://download.oracle.com/docs/cd/E21764_01/web.1111/e13739/listening.htm#BABBAEBG
What about Peter Lorenzen
-
Find the path of the competing java program
Hi all
I work with iRecruitment responsibility of the recruiter.
Here I can create new job opportunities.
After the creation of vacancies, they should be approved by a Manager
When I create vacancy and submit this vacancy for approval
It is stored in table hr_api_transactions.
and when the Manager has approved this particular post then this vacancy
stored in another table per_all_vacancies.
But the problem is this position that stored in the hr_api_transactions table
It removes from this table.
I want to know who transfer the information of this hr_api_transactions to per_all_vacancies table manager vacancy.
In my view, there are some concurrent java programs that transfers information of vacancy from one table to another table.
If there is no concurrent java programs, so that that work?Double wire.
How to find the code-behind application
How to find the code-behind application -
New enforcement of Java program
Hey,.
So I would be able to run another java program.
What I am doing wrong? I get the error message: "No such file or directory."File directory = new File("."); try { List<String> l = new ArrayList<String>(); l.add("Java "+directory.getCanonicalPath+"AnotherProject/bin/main.class"); ProcessBuilder pb = new ProcessBuilder(l); pb.start(); } catch (IOException ex) { ex.printStackTrace(); }
Edited by: Moopz on November 8, 2010 01:01It is entirely up to you! This will be your point of entry. If you are able to think you application as a server of two parts, a customer and you have no problem to build the parties separated in applications of 'work', then their respective main methods would be good enough as beginning-methods. It's just a name.
Really, the principle is simple, let's assume that you have a HelloWorld class (think server) and one as a search for class GoodbyeMoon (think client):
public class GoodbyeMoon { public static void main(String[] args) { System.out.println("Good bye, Moon!"); } }
Then you're application can do this:
public class LoginMain { public static void main(String[] args) { // ... GUI to select MOON or WORLD if (userSelection == MOON ) { GoodbyeMoon.main(null); } else { HelloWorld.main(null); } } }
Maybe you are looking for
-
I bought a new iMac and want to get rid of my suggestions of an old
-
my printer can not scan to e-mail to printer display panel in the months ago very well but right now not working it says unable to connect to web services (work wireless) how fix it please help
-
CW3D chart fill color question
Hello When I use CW3DGraphLib_CWPlot3DSetFillColor on a lot that I created in the IUR, everything is OK apart that the value of blue is actually red and vice versa with the red color value. When I add a new path using CW3DGraphLib_CWPlots3DAdd and th
-
Rehost license of 6140 to 6296
Can I use the tool to transfer license of Cisco to rehost 6140 licenses to 6296 s new? Customer buys 6296 s new to replace their 6140 s which are fully licensed. Can we use the license transfer tool that is available to the www.cisco.com/go/license t
-
The printer is connected to my computer (windows XP) via a network, and I can not print on all computers on the network. I printed the network configuration page, and I find that the IP address has changed. I tried to use a web browser to change th