How to execute a java code ...
how to execute a java code just like in javascript:
for example in javascript: we can create a function :
name_fonction=new Function("param1","param2",..., "Instructions");
but can it be supported in the common java code? how to do it?
Je suis a little urgent...
Thanks a lot!!!
See beanshell
http://www.beanshell.org/
which should be include in the next J2SE 6.0 or 7.0.
See JSR 274 at http://jcp.org/en/jsr/detail?id=274
--Marc (http://jnative.sf.net)
Similar Messages
-
How to execute an java code in pl/sql
hi frnzzzzz....
iam new to java and sql both..... and i whant to execute an java program at pl/sql window. do i have to write an code on java source in program unit of pl/sql editor (i.e is in File>>new>>program window>>java source), if yes then i have done
(i have writtttten
create or replace and compile java source named tt as
public class tt
public static int entry()
return(10);
that and after pressing f8
i gott up the message compiled successfully, and after that i am wondering that how i can run it .
and if i have write an seprate code using notepad then i have done that tooooo....
but now what to do to load java in my pl/sql window?????????
plz. help me out...Hhhhhhhhhhhaaaaaaaaaavvvvvvvveeeeeeeee
yyyyyyooooooooouuuuuuuuuurrrrrrrrrr
kkkkeeeeeyyyyyyyybbbbbboooooooooaaaarrrrrrrrrddddddddd
ffffffffiiiiiiiiiixxxxxxxeeeeeeeeedddddddddd
ffffiiiiiiiirrrrrrrsssssssssssssttttttttt,,,,,,
ppppppppppplllllllllzzzzzzzzzZZzzzzzzzzzzzzZzzzzzzzzzz
!!!!!11!1!!11111!loool -
How do you turn java code into an .exe or etc...
I can't seem to figure out how to turn my java code into an executable in windows so that it runs by itself without a comipler, can someone help? (without using visual J++).
I can't seem to figure out how to turn my java code
into an executable in windows so that it runs by
itself without a comipler, can someone help? (without
using visual J++).I saw a tutorial on that, you might want to check it out.
http://developer.java.sun.com/developer/onlineTraining/new2java/divelog/?frontpage-headlinesfeatures -
How to get the java code of the message mapping
how to get the java code of the message mapping,
I mean to ask how to get the background java code of the message mapping(graphical mapping).
And where to view it?Hi Satya,
The JAVA code for graphical msg mapping is in below folder:
\usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
Here all the mapping jars are there in this folder.
Just decompile these jars and you can see the code.
Thanks,
Rajeev Gupta
Message was edited by:
RAJEEV GUPTA -
How to view the java code of the message mapping,
Hi Experts,
<b>how to view the java code of the message mapping,</b>
how to get the background java code of the message mapping(graphical mapping).
And where to view it?Hi sowmya,
Open any Message mapping in IR. Press <b>CtrlShift0(zero)</b> to open a new menu.
There you will find an option "Is Java Source Code Available?"
There will be an export button nearby. Use it to get the code.
Open it in a zip , you will see the hide java code.
The JAVA code for graphical msg mapping is in below folder:
\usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
Here all the mapping jars are there in this folder.
Just decompile these jars and you can see the code. -
How to get the java code of the standard functions
How to get the java code of the standard functions in xi
Example , hoh get the java code for a node function - removeContext.hi
Click on the Standard Function.
Hold Ctrl+Shift
right click on the standard function to view the context menu. You will see options to view the source code by exporting
regards
krishna -
How to execute a transaction code in prod.Server from development server
Hi Friends,
How to execute a transaction code in prod.Server from development server,Pls give me your valuable suggestions...
Regards,
V.Balajii have a program in production system if i type the request and execute its sends a mail to my admin saying to transport the request to production system.....thats y??????
just tell me ur idea............. -
How to execute these T-Codes like BLOC , BUNL
Dear All,
How to execute these T-Codes like BLOC , BUNL.
Follow this path to view these T-Codes.
( 1.) Execute CO02 or CO03.
( 2.) Put the Order Number & select Display Overview & Press Enter.
( 3.) At Status , you will see an Information Button in Blue colour. (Blue Coloured Button with i written on it)
( 4.) Press this i button.
( 5.) Below you will see the filter button , here it is written ACTIVE STATUS.
Click once on it. It will display ALL STATUSES.
( 6.) Here we see a List of Status. Click once on any one & then click on F1 button.
( 7.) A new screen will open. Click on the "Where Used List".
( 8.) It will now show the list of T-Codes.
What these T-Codes depict ?
How to execute these T-Codes ?
Thanks & Regards,
Vivek SharmaHi,
These are the Business Transactions which can be possible withe the Status on which you have pressed F1.
BLOC - Lock
BUNL - Un-lock
Etc..
Check for these Business Transactions in the T.Code: BS22
Best Regards,
Siva -
Error: ORA-03113 while executing complex java code from Oracle PL/SQL
Hi,
I am trying to execute a complex java code from Oracle PL/SQL. The classes were resolved successfully. But in the middle of execution, I am getting the following error:
ERROR:
ORA-03114: not connected to ORACLE
begin
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Process ID: 13685
Session ID: 21 Serial number: 20
Is there a way to debug the Java classes loaded into oracle? Or is there any utility to find out why the connection was lost?
Regards,
SaravanaHi Saravana:
You could use simply System.out.println(..) at your Java code and see the output at the .trc files generated for your Oracle session.
Or better than this adding Java Util Logging messages at your code, to see how to use JUL API at the OJVM please see this blog post [Using JUL API inside the OJVM|http://marceloochoa.blogspot.com/2007/11/getting-logging-entering-exiting-and.html].
Best regards, Marcelo.
PD: ora-0600 generally are associated with RDBMS bugs, but these bugs can be bypassed by replacing the code which throws the exception by other with a workaround. -
How to execute lines of code by a given amt of time?
Hi,
I want to know how can I execute a certain lines of code repeatedly by every 5 seconds?
e.g. Timer(5 seconds)
execute lines of code;
It is just a while loop, but the condition is set by time.
ThanksLook up java.util.Timer or javax.swing.Timer
-
How to execute a java application once the server starts
I have created a java application which executes correctly. I want this application to execute everytime I start my server. I have modified my web.xml as shown below
<servlet>
<servlet-name>SendEmail</servlet-name>
<servlet-class>
com.allcorp.alliance.tdocs.servlets.SendEmail</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
<load-on-startup>1</load-on-startup>
</init-param>
</servlet>
I have extended the class with HttpServlet. When I start the server, I get the message saying the class is being initializing but it does not execute. I want the application to execute. Any idea what I need to do.BalusC wrote:
Implement ServletContextListener and run the appplication on creation of the ServletContext.Well i understand implementation of ServletContextListener and by overiding contextInitialized(ServletContextEvent se) accordingly can solve the problem.
but you need to consider two cases here first
1).ServletContextListener is not supported by all container especially the minor onces which does not support Servlet 2.3 specification.
2).OP does not have any idea of how to use a Servlet first if you can see he had written his intialization code in the main method.Now how can you expect him to create a listener..... :)
I hope there are no hard issues on what i said this time.
*@OP*
My friend the bad news is that you need to spend bit of time learning about servlets.U'd not be writing intialization code inside a main rather you'd be doing it inside public void init(ServletConfig config) method.
by making <load-on-startup><!--value</load-on-startup> in web.xml enables Servlet container to call init method at the time of deployment of the web application else where it'd call the init method whenever servlet encounters first request from a client.
package com.allcorp.alliance.tdocs.servlets;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.servlet.http.*;
import javax.servlet.*;
import javax.activation.*;
* @author ssa3z
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
public class SendEmail extends HttpServlet{
public void init(ServletConfig config) {
// SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
String to = "[email protected]";
String from = "[email protected]";
// SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
String host = "smtp.allstate.com";
// Create properties, get Session
Properties props = new Properties();
// If using static Transport.send(),
// need to specify which host to send it to
props.put("mail.smtp.host", host);
// To see what is going on behind the scene
props.put("mail.debug", "true");
Session session = Session.getInstance(props);
try {
// Instantiatee a message
Message msg = new MimeMessage(session);
//Set message attributes
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject("Test E-Mail through Java");
msg.setSentDate(new Date());
// Set message content
msg.setText("This is a test of sending a " +"plain text e-mail through Java.\n" +"Here is line 2.");
//Send the message
Transport.send(msg);
}catch (MessagingException mex) {
mex.printStackTrace();
} Hope this might help :)
REGARDS,
RaHuL -
How to generate the java code of a table's data model by parsing it's FXML?
I have know how to create FXML file that describes a table. Meanwhile, according to [Oracle Tutorial|http://docs.oracle.com/javafx/2/fxml_get_started/fxml_tutorial_intermediate.htm#CACFEHBI], it is a best practice to implement a class that defines the data model and provides methods and fields to further work with the table.
However, It's rather cumbersome and time consuming to typing the code. So, is there any tools that can generate the java code of a table's data model by parsing it's FXML describe file?
Regards, Qinn
Edited by: 854675 on Oct 7, 2012 11:02 PMI have know how to create FXML file that describes a table. Meanwhile, according to [Oracle Tutorial|http://docs.oracle.com/javafx/2/fxml_get_started/fxml_tutorial_intermediate.htm#CACFEHBI], it is a best practice to implement a class that defines the data model and provides methods and fields to further work with the table.
However, It's rather cumbersome and time consuming to typing the code. So, is there any tools that can generate the java code of a table's data model by parsing it's FXML describe file?
Regards, Qinn
Edited by: 854675 on Oct 7, 2012 11:02 PM -
How to execute one java file in another java file
Hi All!
I hava a problem.. I need to validate functionality of one java file in my Junit test case.. so, I need to run that java file in my test file..
How should I start with???? Are there any java API's for that.. I checked 'system' ..but which function will suite that functionality,,I am not sure about..I need to check the functionality of deletetion which
is done by a java class.. Now I need to check this
functionality..whether it is deleting or not... in my
test case.. so, for that I need to execute that java
file in similar manner as how we normally do it...,
in my test case..So let the test case create a file and have your class delete it. What's there to run? -
Tips on how to write efficient java code for java mapping
hi
I do not have much knowledge in Java
Can anybody tell me some tips on how to write efficient and optimised java code to be used in java mapping
Thanks,
Loveenahi D'za,
JAVA in xi
A very important place where you will use JAVA in XI is while doing your Mapping. There will be cases when JAVA MAPPING is the best solution to go for. There are 2 types of Parsers available for JAVA Mapping. DOM Parser and SAX parser. Just got through the following links to understand more on Java Mapping and the APIs available.http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/package-summary.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
JAVA mapping -
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
sample code for java mapping
Re: Example code DOM PARSER API -
http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html DOM --- /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs tutorial sax and dom
For a tutorial on the methods of SAX and DOM http://java.sun.com/webservices/docs/1.1/tutorial/doc/
SAX AND dom PARSER ( BY thorsten) -
example /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs java mapping example ( testing and debugging) /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
regards
biplab
Use a Good Subject Line, One Question Per Posting - Award Points -
How to redirect in java code not the jsp or any other
hello
can any one help me how to redirect in java pages the code must be in java function not in jsp or any thing else
thanks in advanceFunction? Don't you rather mean method?
Anyway, in JSF you can send a redirect using ExternalContext#redirect(). If your JSF environment is on top of JSP/Servlet, then under the hood it basically invokes HttpServletResponse#sendRedirect() and FacesContext#responseComplete().
Maybe you are looking for
-
Phone line and BB connection keeps dropping - BT H...
My broadband and phone connection keeps dropping. Its been fine for years and now since all this bad weather we have been having the connection lasts temporarily for a few minutes sometimes more and then all the blue lights start flashing orange, so
-
Home Sharing Works, but no Devices Shown
Should my iPhone show up in iTunes Home Sharing. Or ATV2 for that matter. I have Home Sharing set up in iTunes and on both AppleTV2 and iPhone 4. All are running the latest software. Both ATV2 and iPhone are able to stream my iTunes Library without I
-
Ready to throw Ipod out the window
this is the message I get when I run CD Diagnositics. I can import a new CD once then never again. what could be the problem. Microsoft Windows XP Home Edition Service Pack 1 (Build 2600) Hewlett-Packard Presario 2500 (DK560A) iTunes 6.0.4.2 CD Drive
-
How to make a default entry to "partner bank type" in MIRO/FB60?
"Payment transactions" data containing the partner bank type is under the "General data" section of the vendor master. Meaning it is not company code specific. For example, I have four banking information (and of course four partner bank types) ente
-
Best 23" LCD Monitor Under $150
I'm looking for a 23" LCD monitor. Any recommendations. I'm not looking to spend any more than $150-$170. I'm not very flexible on the price. Thanks in advance! Best, Coander15