How to launch a new JVM from a java class?
I want to update a runing java applicaton. Before updating it, I have to shut down this application and open a new JVM (launch another java class with main method inside another JVM). Then update this application. After updating, restart this application. How to do it?? Thanks. Gary
Hi!
I'm using an applet to upload a library in the ext directory and then opening another applet that uses that library...
If I manually upload the library the second applet works
but if I try to load it at runtime with the first applet the file is saved correctly but the second applet doesn,t work :((
the second applet works only if I close the browser and open it again...:((
I need to reaload the JVM at runtime or maybe opening a new one...
can anyone help me?
please reply me if you found anything similar,
ciao!
fabibu
Similar Messages
-
How to execute a jsp instruction from a java class?
How to execute a jsp instruction from a java class?
Any help please.
Thank'sI'll detail my problem:
Supposing that I have a jsp file called: start.jsp
In the start.jsp I instanciated an object called global from the class Global ( for example ).
Then, I called a custom taglib:
<ix:mytag/>
In the suitable tld file: the mytag is defined:
<tag>
<tag class>Tag1<.....
The java file Tag1 has method:
doStartTag(){
// here is the problem
global.doSomeFunctions();
Okay, the problem is that the object gobal is not defined in the class Tag1. what to do?
I think that I have to pass the object global as a parameter to the class Tag1. How to do that?
Actually, the problem was to insert the follwoing in the doStartTag method:
doStartTag(){
pageContext.getOut().print("<%= hello world %>");
The output is <%= hello world %> not hello world.
Okay, the new problem is how to pass an object as a parameter to a class called from a tld file.
Any help please.
Thank's too much -
How to launch a new JVM to run a Java Servlet application?
Is there any way of launching an independent JVM to run a Servlet application in Tomcat environment?
search in google.com
BrowserLaucher.java -
How to Run a .sql file from simple java class
How to execute a .sql file consisting of Complex Queries,procedures through simple java class.
The queries may have different delimiters,queries independant of each other.
I am able to do with Specific De-limiter.But I need in such a way that there should not be any
Constraints. Since My .sql may Contain different De-limiters.
If any one can Suggest Some Solution.
It will be Great Help.
regards
AnilCheck out ibatis script runner, it' a third party library but quite handy for running sql files...
m -
How to make an exe file from a java class file
i know one of the java's most powerfull properties is plataform independent, but if i have done one application (with GUI) that i want to run on Win32 for example, if anyone knows how to make it please send me a message to [email protected], how i know that can be make it? because HotJava is made in Java and in Win32 is a executable
Do a search on these forums for any of the thousands of times this question has been asked and any of the thousands of times it's been answered.
-
How to Create a new column from two different result sets
How to Create a new column from two different result sets, both the result set uses the different date dimensions.
i got solutions for this is apply filters in column formula it self, based on the requirement.
-
How to create a new connection from SAPGUI to Test drive?
Hi,
I have installed Sap Netweaver Test drive on a linux virtual machine (windows host). The installation was successful and I was able to start the instance (application server and the database), yet I don't know how to create a new connection from my SAPGUI client (7.20) to this server. The static IP address of the server is 192.168.1.160.
I entered the following values for my new connection entry
Description: SAP Netweaver
Application server: 192.168.1.160
Instance number: 01
System ID: DB2
SAProuter: /H/192.168.1.160/S/3201/H/
But it does not work. Any idea about the values needed for creating a new entry?
Thanks in advance,
Dariyoosh>
Dibya R Das wrote:
> Why are you entering a router string? Can't you reach a box directly from your machine?
>
> Doesn't a ping to that host & a "telnet <host/ip address> 3201" work from your machine to the SAP System.
>
> Remove the router string you wont need if the above works.
>
> - Regards, Dibya
Hello there,
Thank you very much for your answer which solved my problem. In fact there was no need of providing router string.
Kind Regards,
Dariyoosh -
How to display a new view from a nib ?
how to
display a new view from a nib in the main window after clicking on a button.
When I click a the button named for example "goToGokyo", the link to my procedure
runs correctly because I see my NSLog message "goToGokyo button pressed".
My nib, which name is "GokyoViewController" does exist.
I did as follow for the moment but I'm stuck now, my nib :
- (IBAction)goToGokyo:(id)sender
NSLog(@"goToGokyo button pressed");
//[self stopSound];
if (gokyoViewController == nil)
GokyoViewController *aGokyoViewController = [[GokyoViewController alloc]
initWithNibName:@"GokyoViewController" bundle:nil];
self.gokyoViewController = aGokyoViewController;
//[aGokyoViewController release];
[self GokyoView:gokyoViewController animated:YES completion: nil];
Thanks in advance for your advice.
CheersI did that now :
- (IBAction)btnLoadMyViewController:(id)sender
NSViewController *viewController = [[NSViewController alloc] initWithNibName:@"MyView" bundle:nil];
NSView *view = [viewController view];
[_myWindowController.window setContentView:view];
//view addSubview:view];
//[self.myView addSubview:view];
Using
"_myWindowController.window setContentView:view];"
or
"[self.myView addSubview:view];"
does not an error but does nothing !
Would you help me one more times please ?
Thanks in advance -
How to open a new window from the login window?
hi,
can someone tell me how to open a new window from an existing window, here by window i mean frame. The case is i hv two java files - oracle.java and FDoptions.java. The first frame is in the Login.java. The oracle.java file has a button "Login", when it is clicked, i want to open the next frame which is in the file FDoptions.java. Can some one help me with this? I m giving the code below -
oracle.java
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
* The application's main frame.
public class oracle {
private JFrame frame;
private JPanel logInPanel;
private JButton clearButton;
private JButton logInButton;
private JButton newuserButton;
private JButton forgotpasswordButton;
private JTextField userNameTextField;
private JPasswordField passwordTextField;
public oracle() {
initComponents();
private final void initComponents() {
JLabel userNameLabel = new JLabel("User name: ");
JLabel passwordLabel = new JLabel("Password: ");
userNameTextField = new JTextField();
passwordTextField = new JPasswordField();
JPanel userInputPanel = new JPanel(new GridLayout(2, 2, 5, 5));
userInputPanel.setBorder(BorderFactory.createEmptyBorder(10, 20, 10, 20));
userInputPanel.add(userNameLabel);
userInputPanel.add(userNameTextField);
userInputPanel.add(passwordLabel);
userInputPanel.add(passwordTextField);
logInButton = new JButton(new LogInAction());
clearButton = new JButton(new ClearAction());
newuserButton = new JButton(new NewUserAction());
forgotpasswordButton = new JButton(new ForgotPassword());
JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
JPanel buttonPanel1 = new JPanel(new FlowLayout(FlowLayout.RIGHT));
buttonPanel.add(logInButton);
buttonPanel.add(clearButton);
buttonPanel1.add(newuserButton);
buttonPanel1.add(forgotpasswordButton);
logInPanel = new JPanel(new BorderLayout());
logInPanel.add(userInputPanel, BorderLayout.NORTH);
logInPanel.add(buttonPanel, BorderLayout.CENTER);
logInPanel.add(buttonPanel1,BorderLayout.SOUTH);
frame = new JFrame("FD Tracker");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(500, 500);
frame.setContentPane(logInPanel);
frame.pack();
frame.setVisible(true);
private void performLogIn() {
// Log in the user
System.out.println("Username: " + userNameTextField.getText());
char[] password = passwordTextField.getPassword();
System.out.print("Password: ");
for(char c : password) {
System.out.print(c);
System.out.println();
private void performClear() {
// Clear the panel
System.out.println("Clearing the panel");
userNameTextField.setText("");
passwordTextField.setText("");
private final class LogInAction extends AbstractAction {
public LogInAction() {
super("Log in");
@Override
public void actionPerformed(ActionEvent e) {
performLogIn();
private final class ClearAction extends AbstractAction {
public ClearAction() {
super("Clear");
@Override
public void actionPerformed(ActionEvent e) {
performClear();
private final class NewUserAction extends AbstractAction{
public NewUserAction(){
super("New User");
@Override
public void actionPerformed(ActionEvent e){
JFrame newuser = new JFrame("NewUser");
private final class ForgotPassword extends AbstractAction{
public ForgotPassword(){
super("Forgot Password");
@Override
public void actionPerformed(ActionEvent e){
JFrame forgotpassword = new JFrame("Forgot Password");
public static void main(String args[]) {
new oracle();
FDoptions.java
import java.awt.FlowLayout;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JFrame;
public class Fdoptions{
private JFrame fdoptions;
private JPanel fdoptpanel;
private JButton enterfdbutton;
private JButton viewfdbutton;
public Fdoptions() {
initComponents();
private final void initComponents(){
fdoptpanel = new JPanel(new BorderLayout());
fdoptpanel.setBorder(BorderFactory.createEmptyBorder(80,50,80,50));
enterfdbutton = new JButton(new EnterFDAction());
viewfdbutton = new JButton(new ViewFDAction());
JPanel enterbuttonpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
JPanel viewbuttonpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
enterbuttonpanel.add(enterfdbutton);
viewbuttonpanel.add(viewfdbutton);
fdoptpanel.add(enterbuttonpanel,BorderLayout.NORTH);
fdoptpanel.add(viewbuttonpanel,BorderLayout.SOUTH);
fdoptions = new JFrame("FD Options");
fdoptions.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fdoptions.setSize(1000,1000);
fdoptions.setContentPane(fdoptpanel);
fdoptions.pack();
fdoptions.setVisible(true);
private void performEnter(){
private void performView(){
private final class EnterFDAction extends AbstractAction{
public EnterFDAction(){
super("Enter new FD");
public void actionPerformed(ActionEvent e){
performEnter();
private final class ViewFDAction extends AbstractAction{
public ViewFDAction(){
super("View an existing FD");
public void actionPerformed(ActionEvent e){
performView();
public static void main(String args[]){
new Fdoptions();
}nice day,
these lines..., despite the fact that this example is about something else, shows you two ways
1/ modal JDialog
2/ two JFrame
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
* Parent Modal Dialog. When in modal mode, this dialog
* will block inputs to the "parent Window" but will
* allow events to other components
* @see javax.swing.JDialog
public class PMDialog extends JDialog {
private static final long serialVersionUID = 1L;
protected boolean modal = false;
private WindowAdapter parentWindowListener;
private Window owner;
private JFrame blockedFrame = new JFrame("No blocked frame");
private JFrame noBlockedFrame = new JFrame("Blocked Frame");
public PMDialog() {
noBlockedFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
noBlockedFrame.getContentPane().add(new JButton(new AbstractAction("Test button") {
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent evt) {
System.out.println("Non blocked button pushed");
blockedFrame.setVisible(true);
noBlockedFrame.setVisible(false);
noBlockedFrame.setSize(200, 200);
noBlockedFrame.setVisible(true);
blockedFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
blockedFrame.getContentPane().add(new JButton(new AbstractAction("Test Button") {
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent evt) {
final PMDialog pmd = new PMDialog(blockedFrame, "Partial Modal Dialog", true);
pmd.setSize(200, 100);
pmd.setLocationRelativeTo(blockedFrame);
pmd.getContentPane().add(new JButton(new AbstractAction("Test button") {
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent evt) {
System.out.println("Blocked button pushed");
pmd.setVisible(false);
blockedFrame.setVisible(false);
noBlockedFrame.setVisible(true);
pmd.setVisible(true);
System.out.println("Returned from Dialog");
blockedFrame.setSize(200, 200);
blockedFrame.setLocation(300, 0);
blockedFrame.setVisible(false);
public PMDialog(Dialog parent, String title, boolean isModal) {
super(parent, title, false);
initDialog(parent, title, isModal);
public PMDialog(Frame parent, String title, boolean isModal) {
super(parent, title, false);
initDialog(parent, title, isModal);
private void initDialog(Window parent, String title, boolean isModal) {
owner = parent;
modal = isModal;
parentWindowListener = new WindowAdapter() {
@Override
public void windowActivated(WindowEvent e) {
if (isVisible()) {
System.out.println("Dialog.getFocusBack()");
getFocusBack();
private void getFocusBack() {
Toolkit.getDefaultToolkit().beep();
super.setVisible(false);
super.pack();
super.setLocationRelativeTo(owner);
super.setVisible(true);
//super.toFront();
@Override
public void dispose() {
owner.setEnabled(true);
owner.setFocusableWindowState(true);
super.dispose();
@Override
@SuppressWarnings("deprecation")
public void hide() {
owner.setEnabled(true);
owner.setFocusableWindowState(true);
super.hide();
@Override
public void setVisible(boolean visible) {
boolean blockParent = (visible && modal);
owner.setEnabled(!blockParent);
owner.setFocusableWindowState(!blockParent);
super.setVisible(visible);
if (blockParent) {
System.out.println("Adding listener to parent ...");
owner.addWindowListener(parentWindowListener);
try {
if (SwingUtilities.isEventDispatchThread()) {
System.out.println("EventDispatchThread");
EventQueue theQueue = getToolkit().getSystemEventQueue();
while (isVisible()) {
AWTEvent event = theQueue.getNextEvent();
Object src = event.getSource();
if (event instanceof ActiveEvent) {
((ActiveEvent) event).dispatch();
} else if (src instanceof Component) {
((Component) src).dispatchEvent(event);
} else {
System.out.println("OUTSIDE EventDispatchThread");
synchronized (getTreeLock()) {
while (isVisible()) {
try {
getTreeLock().wait();
} catch (InterruptedException e) {
break;
} catch (Exception ex) {
ex.printStackTrace();
System.out.println("Error from EDT ... : " + ex);
} else {
System.out.println("Removing listener from parent ...");
owner.removeWindowListener(parentWindowListener);
owner.setEnabled(true);
owner.setFocusableWindowState(true);
@Override
public void setModal(boolean modal) {
this.modal = modal;
public static void main(String args[]) {
new PMDialog();
} -
How do i find new downloads from i tunes in my video app in this os7
How do i find new downloads from i tunes in my video app in this os7. All purchsed items are there, what a
mess???Leonard,
I used the sample code from StamperUI.cpp as a starting point. I have tried 'LoadBitmap', 'LoadCursor' and 'LoadIcon' and none of these seam to work for me.
As I stated before, I used Visual Studio to create the icons in the resource file, so I would think that they would be recognized by the application.
Thanks,
Gregory -
HT4137 how to backup my new Iphone from my old Iphone ?
how to backup my new Iphone from my old Iphone ? Forexample, i just bought Iphone5 and I want to put all messages, which is in my old Iphone 4 to my new Iphone 5.
please help cause need you helps.Transferring information from current device to new device
-
How can I sync new friends from Facebook?
Hi guys,
I have Nokia N9 with the latest firmware version.
I configured my Facebook account and set it to show my friend list in my Contacts.
I can see all my friends from Facebook and they have merged with my contacts list.
But when I add new friends to my Facebook, they won't sync and won't show up on my Contact list.
How can I sync new friends from my Facebook? Is there any way to refresh the list?
Thanks :-)Only the contents of the most recent photo sync remains on the iPad, so if you want both sets of photos on the iPad you need to include them in the sync - by not including the current iPad photos in the new sync iTunes 'assumes' that you no longer want them on the iPad.
-
How do I sync new photos from IMac to IPad2?
How do I sync new photos from IPhoto from my laptop to my IPad2?
See Here > Syncing photos using iTunes
From Here > http://www.apple.com/support/ipad/syncing/ -
Can you please how to retrive the new netprice from the new validity period
Hi,
When you display a contract using ME33K and you click on a item and view its conditions(shift+F6), there might be 2 validity periods for a given item.
and each period will have different netprice in it.
One will be old date before the PO was created and the other new one which has validity till 31.12.999..We want to fetch the netprice for the new validity date but currently the program is fetching this data from the table EKPO which is having the netprice of the old date only..
Can you please how to retrive the new netprice from the new validity periodThank you so much.
But I need more help specific to my problem.
Let me describe the same.
Suppose the PO creation date is 04.07.2007
The conditions for an item in a contract for the PO are as follows;
1. Validity from 04.07.2007 validity to 04.07.2007 Netprice = 100.00
2. Validity from 05.07.2007 validity to 31.12.9999 Netprice = 200.00
We need to always fetch the netprice from the validity period which always matches with the PO creatio date. here the value 100.00 should be the correct netpr as the PO creation date matches with the first validity period.
But the program is fetching the netprice 200.000 which belongs to the second validity period. That is beacuse the select statement which fetches the data for contracts collects on the basis of EKKO-kdate and ekko-kdtab.the fields kdate and kdtab retrieves the validity period of the contract which is from 04.07.2007 to 31.072007. This data is then used to retrieve the netpr data from EKPO and it fetched 200.00 as it retrives the netprice of current data in contract validity and h not with respect to PO creation date.
This data is then used to fetch the get the netpr data from EKPO.
<u>what we need is the netprice for that validity period of item(Conditions) that matches with the PO creation date</u>..
Below is the code where I'm selecting the data from ekko and ekpo for the contracts data..Can you please add the code snippet to the below attachesd subroutine to get the required data from KONV and KONP so that we can retrieve the correct Netprice.
FORM select_contracts USING p_s_cebeln LIKE s_cebeln[]
p_c_k_bstyp TYPE ebstyp
p_p_bukrs TYPE bukrs
p_p_ekorg TYPE ekorg
p_p_ekgrp TYPE bkgrp
*Begin of Mod-004
fp_p_cernam type ty_r_ernam
p_p_cernam TYPE ernam
*End of Mod-004
p_s_werks LIKE s_werks[]
p_s_matnr LIKE s_matnr[]
p_s_lifnr LIKE s_lifnr[]
p_s_val_dt LIKE s_val_dt[].
*mod-002
data : l_amount type BAPICURR_D, " Net price
l_waers TYPE waers, " Currency Key
l_eff_amount type BAPICURR_D. " Effective value
data: l_v_netpr type bprei.
*mod-002
SELECT ebeln
bukrs
bstyp
aedat
ernam
lifnr
zterm
ekorg
ekgrp
waers
wkurs
<b>kdatb
kdate</b>
inco1
INTO TABLE i_ekko
FROM ekko
WHERE ebeln IN p_s_cebeln
AND bstyp EQ p_c_k_bstyp
AND bukrs EQ p_p_bukrs
AND ekorg EQ p_p_ekorg
AND ekgrp EQ p_p_ekgrp
*Begin of Mod-004
AND ernam EQ p_p_cernam
AND ernam IN fp_p_cernam
*End of Mod-004
AND lifnr IN p_s_lifnr
AND ( kdatb IN p_s_val_dt OR kdate IN p_s_val_dt ).
IF sy-subrc EQ 0.
Populates internal table i_ekpo using EKPO table.
SELECT ebeln
ebelp
loekz
txz01
matnr
werks
ktmng
menge
meins
bprme
netpr
peinh
webaz
mwskz
uebto
untto
erekz
pstyp
knttp
repos
webre
konnr
ktpnr
ean11
effwr
xersy
aedat
prdat
INTO TABLE i_ekpo
FROM ekpo
FOR ALL ENTRIES IN i_ekko
WHERE ebeln = i_ekko-ebeln
and aedat = i_ekko-aedat
AND werks IN p_s_werks
AND matnr IN p_s_matnr.
LOOP AT i_ekpo INTO rec_ekpo.
MOVE rec_ekpo-ebeln TO rec_contr-ebeln.
MOVE rec_ekpo-ebelp TO rec_contr-ebelp.
MOVE rec_ekpo-loekz TO rec_contr-loekz.
MOVE rec_ekpo-txz01 TO rec_contr-txz01.
MOVE rec_ekpo-matnr TO rec_contr-matnr.
MOVE rec_ekpo-werks TO rec_contr-werks.
MOVE rec_ekpo-ktmng TO rec_contr-ktmng.
MOVE rec_ekpo-menge TO rec_contr-menge.
MOVE rec_ekpo-meins TO rec_contr-meins.
MOVE rec_ekpo-bprme TO rec_contr-bprme.
MOVE rec_ekpo-netpr TO rec_contr-netpr.
move l_v_netpr TO rec_contr-netpr.
mod-002
read table i_ekko into rec_ekko with key
ebeln = rec_ekpo-ebeln.
l_waers = rec_ekko-waers.
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
currency = l_waers
amount_internal = rec_contr-netpr
IMPORTING
AMOUNT_EXTERNAL = l_amount.
rec_contr-netpr = l_amount.
mod-002
MOVE rec_ekpo-peinh TO rec_contr-peinh.
MOVE rec_ekpo-webaz TO rec_contr-webaz.
MOVE rec_ekpo-mwskz TO rec_contr-mwskz.
MOVE rec_ekpo-uebto TO rec_contr-uebto.
MOVE rec_ekpo-untto TO rec_contr-untto.
MOVE rec_ekpo-erekz TO rec_contr-erekz.
MOVE rec_ekpo-pstyp TO rec_contr-pstyp.
MOVE rec_ekpo-knttp TO rec_contr-knttp.
MOVE rec_ekpo-repos TO rec_contr-repos.
MOVE rec_ekpo-webre TO rec_contr-webre.
MOVE rec_ekpo-konnr TO rec_contr-konnr.
MOVE rec_ekpo-ktpnr TO rec_contr-ktpnr.
MOVE rec_ekpo-ean11 TO rec_contr-ean11.
MOVE rec_ekpo-effwr TO rec_contr-effwr.
mod-002
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
currency = l_waers
amount_internal = rec_contr-effwr
IMPORTING
AMOUNT_EXTERNAL = l_eff_amount.
rec_contr-effwr = l_eff_amount.
*mod-002
MOVE rec_ekpo-xersy TO rec_contr-xersy.
APPEND rec_contr TO i_contr.
CLEAR: rec_ekpo,rec_contr.
mod-002
CLEAR : rec_ekko,l_amount, l_eff_amount,l_waers.
mod-002
ENDLOOP.
Modifying i_contr using i_ekko.
SORT i_ekko BY ebeln.
LOOP AT i_contr INTO rec_contr.
READ TABLE i_ekko INTO rec_ekko WITH KEY
ebeln = rec_contr-ebeln
BINARY SEARCH.
MOVE rec_ekko-bukrs TO rec_contr-bukrs.
MOVE rec_ekko-bstyp TO rec_contr-bstyp.
MOVE rec_ekko-aedat TO rec_contr-aedat.
MOVE rec_ekko-ernam TO rec_contr-ernam.
MOVE rec_ekko-lifnr TO rec_contr-lifnr.
MOVE rec_ekko-zterm TO rec_contr-zterm.
MOVE rec_ekko-ekorg TO rec_contr-ekorg.
MOVE rec_ekko-ekgrp TO rec_contr-ekgrp.
MOVE rec_ekko-waers TO rec_contr-waers.
MOVE rec_ekko-wkurs TO rec_contr-wkurs.
MOVE rec_ekko-kdatb TO rec_contr-kdatb.
MOVE rec_ekko-kdate TO rec_contr-kdate.
MOVE rec_ekko-inco1 TO rec_contr-inco1.
MODIFY i_contr FROM rec_contr.
ENDLOOP.
ENDIF.
REFRESH: i_ekko,
i_ekpo.
CLEAR : rec_ekko,
rec_ekpo,
rec_contr.
ENDFORM. "select_contracts
Thanks. -
How to call a Java class from another java class ??
Hi ..... can somebody plz tell me
How to call a Java Class from another Java Class assuming both in the same Package??
I want to call the entire Java Class (not any specific method only........I want all the functionalities of that class)
Please provide me some slotuions!!
Waiting for some fast replies!!
Regards
Smita MohantyHi Smita,
you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
e.g.
you have developed A.java and B.java, both are in same package.
in implementaion of B.java
class B
A obj = new A();
//to access A's methods
A.method();
// to access A's variable
//either
A.variable= value.
//or
A.setvariable() or A.getvariable()
Maybe you are looking for
-
VirtualBox Error with VT-x/AMD-V after suspend
I using virtualbox_bin 2.2.0-1 from the AUR and have noticed a really annoying problem that *is not related* to the virtualbox_bin package (I think). When I suspend my Arch x86_64 box and then awaken it again, VBox doesn't run my 64-bit guest VM and
-
Hi, I am new programmer and have been assigned the task of replacing an old system with a new one . The old system was done using Access 97 VBA. Both the backend(database) and the frontend ( in Access VBA). It is basically a database system which, re
-
How to move and access .pst file to another location
I want to move my .ost file in D drive and access from D drive. but when i move the file and start the outlook again then all mails start to download from server again . Help me
-
Server does not allow relaying
I recently had to reset everything on my iPad due to iOS 6 upgrade. Now when I try to reply or forward emails from my preferred account (not iCloud ), I receive a note indicating the message could not be sent because the server does not allow relayin
-
hi, usually when i press Cmd + t i can trasform my layer. let's say i have a simple shape, if i transform i can chose prospective but it wont make it longer or shorter in perspective. Today searching the web i found a psd file where for some reason i