Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

IDL/CORBA Compiler.

Posted on 2000-02-18
7
Medium Priority
?
1,220 Views
Last Modified: 2008-03-03
Hi,
I am new in IDL/CORBA programming. I have downloaded "idltojava" compiler from the following site:
http://developer.java.sun.com/developer/earlyAccess/jdk12/idltojava.html

I wanted to compile the following StockMarket.idl program but it is giving error. I am working on Windows95.
Please let me know how to fix the problem.
Thanks,
sunanda
*******StockMarket.idl*********
module StockMarket {                                       typedef string StockSymbol;                                      
typedef sequence<StockSymbol> StockSymbolList;                  
                                                                 
interface StockServer {                                          
                                                                 
float getStockValue(in StockSymbol symbol);                      
                                                                 
StockSymbolList getStockSymbols();                              
                                                                 
};                                                              
                                                                 
};                                                              
                                        ********************************                        


 
0
Comment
Question by:skundu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:diakov
ID: 2536694
What error did you get?

I compiled under jacorb and it did work.

module StockMarket
{

typedef string StockSymbol;                                      
typedef sequence<StockSymbol> StockSymbolList;                    
                                                                 
  interface StockServer
  {
    float getStockValue(in StockSymbol symbol);                      
    StockSymbolList getStockSymbols();                                
  };                                                                
};


There is nothing wrong with your idl.

Also what version of the idltojava do you use?

Cheers,
  Nik
0
 

Author Comment

by:skundu
ID: 2549150
Hi,

Thanks for help. This is JDK Version 1.2 Beta 2.
Here is the error:
In the MS-DOS prompt I enter:
idltojava-ea-win32 stockmarket.idl
It shows:
Archive: C:\download\idltojava-ea-win32.exe
caution: filename not matched: StockMatket.idl

Pls let me know (it is not the mismatch of the .idl file name, I entered and that exists, for sure).
thanks,
sunanda
0
 
LVL 8

Accepted Solution

by:
diakov earned 120 total points
ID: 2549424
Look my friend,

idltojava-ea-win32.exe is the archive of the idltojava compiler. Once you run it without parameters it will extract the real compiler and a couple of other files.
As I said, your IDL file is just fine, just extract the program first.

Nik
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 

Author Comment

by:skundu
ID: 2556531
Hi,
Thanks again, but I am still having problem! I run the file idltojava-ea-win32.exe and it created a folder named idltojava-win32. The folder contains one file named idltojava-ea-win32.exe
when I run it like
>idltojava stockmarket.idl
It shows error again:
idltojava-ea-win32.exe: fatal error:
cannot preprocess input; No such file or directory.

Please help me fix it.Thanks.
sunanda
0
 
LVL 8

Expert Comment

by:diakov
ID: 2557114
you have to run with the following flag:
idltojava -fno-cpp test.idl

This turns off the preprocessor that deals with #include, #define, #undef

Cheers,
  Nik
0
 
LVL 8

Expert Comment

by:diakov
ID: 2557116
You can read about the other flags from the two html files that come out of the package.
0
 

Author Comment

by:skundu
ID: 2558899
Thanks.
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question