爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4016|回复: 2

[求助] 【封贴,已解决】IDL java程序运行出错

[复制链接]
回帖奖励 1 金钱 回复本帖可获得 1 金钱奖励! 每人限 1 次(中奖概率 20%)

新浪微博达人勋

发表于 2012-11-6 16:22:53 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
本帖最后由 641477497 于 2012-11-7 17:37 编辑

import com.idl.javaidl.*;
public class GeoGen
{
        public static void main(String[] args)
        {
                java_IDL_connect ostock;
                ostock = new java_IDL_connect();
                ostock.createObject();

                String CurDir = System.getProperty("user.dir");
                String StrCmd1 = "restore,'" + CurDir + "/geometrygen.sav'";
                System.out.println(StrCmd1);
                ostock.executeString(StrCmd1);
                String StrCmd2 = "geometrygen,folder_name='/root/data_demo/'" + ",icnfile_name='" + CurDir + "/geogen.ico'";
                System.out.println(StrCmd2);
                ostock.executeString(StrCmd2);//这一行有问题
                ostock.destroyObject();
        }
一段win下面的c++程序,移植过来有问题,求指点!!!

报错提示:
Exception in thread "main" com.idl.javaidl.JIDLException[iErr=-225 sMsg=Expression must be a structure in this context: TIF_INFO.]        at com.idl.javaidl.JIDLPAL.nativeThrowJIDLException(Native Method)        at com.idl.javaidl.JIDLPAL.throwSpecificException(JIDLPAL.java:1069)        at com.idl.javaidl.JIDLPAL.throwJIDLException(JIDLPAL.java:1098)        at com.idl.javaidl.JIDLPAL.executeString(JIDLPAL.java:754)        at com.idl.javaidl.JIDLObject.executeString(JIDLObject.java:657)        at GeoGen.main(GeoGen.java:17)

密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2012-11-6 16:29:41 | 显示全部楼层
顶啊,求助啊!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2012-11-7 09:31:12 | 显示全部楼层
就没人知道吗?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表