Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7431153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:15:04+00:00 2026-05-29T09:15:04+00:00

I want to connect Java and FLEX. I have never used Java and also

  • 0

I want to connect Java and FLEX.
I have never used Java and also Java is not installed on my PC.
So From Installation of Java to Calling Java Method from FLEX and Receive the Result from Java to FLEX i need steps so any one help me to connect Java and FLEX.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:15:04+00:00Added an answer on May 29, 2026 at 9:15 am

    Go through the following steps. This will surely helpful to you…

    1 Install JDK in your system

    2 Copy apache tomcat server in your c drive

    3 Set Environment Variable
    (1) Variable Name : JAVA_HOME
    Variable Value : C:\Program Files\Java\jdk1.7.0
    (2) Variable Name : CATALINE_HOME
    Variable Value : C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35

    4 Update the Path Environment Variable in Variable Value
    Add tha fillowing Path
    (1)C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35\bin
    (2)C:\Program Files\Java\jdk1.7.0\bin

    5 Create a Blazeds folder in webapps folder and extract the blazeds.war file

        Two folder there (1)WEB-INF (2)META-INF
    

    6 Create a folder name example in C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35\webapps\FlexJavaIntegration\WEB-INF\classes

    7 Create a Java file in example folder content of java file is below

        package example;
    
        import java.util.Date;
    
        public class HelloWorld 
        {
            public HelloWorld() 
            {
    
            }
            public String getHelloWorld(String name,String name1) 
            {
                String result = null;
                result = name + " and " + name1;
                return result;
            }
            public String getCurrentDate(String name)
            {
                String result = null;
                result = " Current Date is:" + new Date();
                return result;
            } 
        }
    

    8 Complile the .java file in CMD

        javac HelloWorld.java
    

    9 Go to folder C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35\webapps\FlexJavaIntegration\WEB-INF\flex and edit the remoting-config.xml file and add the destination

    <destination id="helloworld">
        <properties>
            <source>example.HelloWorld</source>
        </properties>
        <adapter ref="java-object" />
    </destination>
    

    10 Start Tomcat Server from CMD
    Go to bin folder of Tomcat server folder
    Run startup.bat file in cmd and start Tomcat server
    check: “localhost:8080” URl in your browser
    and if you want to shutdown the tomcat serve write follwing command in CMD
    shutdown.bat

    11 Create New Flex Application
    Select Server Technology – J2EE

    12 Click Next and Set Following Properties

    Root Folder :    C:\apache-tomcat-6.0.35-windows-x86\apache-tomcat-6.0.35\webapps\blazeds
    Root URL        :   http://localhost:8080/blazeds
    Context Root    :   /blazeds
    
    And Validate Configuration 
    

    13 The Remote Object Syntax is as follows

    <mx:RemoteObject id="ro" destination="helloworld" source="example.HelloWorld" result="resultHandler(event)" fault="faultHandler(event)"/>
    
        ---------destination in RemoteObject is id of destination in remoting-config.xml
        ---------source in RemoteObject is source of destination in remoting-config.xml
    

    14 Now Call the Java Method as follows

    <mx:Button label="Get Hello World!" click="ro.getHelloWorld(txt1.text,txt2.text)"/>
    <mx:Button label="Get Time" click="ro.getResults(txt1.text)" />
    
        Here ro is id of RemoteObject and getHelloWorld & getResults is method from JAVA file.
    

    15 You get result from java class file

    NOTE : YOU NEED TO INSTALL THE BLAZEDS AND APACHE TOMCAT SERVER ON YOUR PC

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a eclipse rcp/rap application and I want to connect to Java EE
I have java service which communicates over https. I want to connect to this
I want to connect with MS Access from my Java code. How to do
I want to connect a remote machine(has a Linux operation system) from my Java
from .NET 3.5 C# web application we want to connect to Java WebService. There
I want to connect a mysql database with eclipse, i have the java developers
I have designed my own synthesizer in java and I now want to connect
I want to connect and execute one (or sometimes several) SQL statements, and NOT
I want to connect from home using SQL Server 2005 to another PC. I
I just installed VS2010 and I want to connect to TFS, But I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.