java是跨平台的.
dos下的中断,
unix下有吗?呵呵,我也不知道,或许可以吧...还有,你用c++不用库在linux下能写个windows窗口?????????
 不是linux窗口 !
你试试 :)

解决方案 »

  1.   


    象awt这种就不用你自己写了,前人一般都会考虑到你的需要已经准备好一些了。
    不过,你可以在其基础上修改或扩充你自己的功能。若实在觉得awt/swing不顺手,当然你也可以自己写一个。java与硬件的联系也有一些基础类库的,你可以在这之上加以扩充,以满足自己的需要。
      

  2.   

    谢谢 caoze(大漠孤烟) 
    我就是想知道如何自己写一个类似awt的东西,只要能实现一点小功能就可以,能给个例子或者思路吗?
    zez(鹤清风 为了老婆多挣钱 !) ,你误会我的意思了,大概是我没说明白。
    我的意思是说,我想访问物理内存,没有指针我如何实现呢?
      

  3.   

    你可以看一下jdk的源文件啊,你要自己写代码可以参考awt包的源文件
      

  4.   

    可是我没有awt包的源文件呀。
      

  5.   

    当然是什么都有好有坏咯,c/c++和java都各有千秋,主要是看你自己要写什么程序,掌握主动,自己选择用什么工具编写,不要被到底哪个工具好给困扰了,这就好像用刀好还是用扫把好一样,根据需要就地取材吧。
      

  6.   

    呵呵,没什么好困惑的。。c/c++ 和java 本来是两码事,你看名字都不一样。。 哈哈你对c/c++  和java 理解有多少?java(JNI)下也可以调用也可以调用c的呀。。你完全可以搞嵌入式开发的,,为什么工控上比较倾向于用asm?而不用c++ ,而单片机却用c51比较多。。语言嘛,,你说pascal,和c,basic 有什么区别?  为什么那个年代很多人喜欢用c?现在c/c++ 和 java 又能有什么区别,,只是有人喜欢用java肯定有他的理由,(web service ,基于各种协议的应用,rmi,corba,jms....) 如果你c/c++和java都掌握(包括一些开发工具)你肯定不愿意用c去写,
    当然只是一个windows窗口,你可定愿意用c去写。至于DOS下的中断向量表。保留的都是dos(windows)的。。linux下怎么办呢???(我不懂,所以就不知道管不管用了。)其实,我也不明白,,只是世界变化太快。。
      

  7.   

    java emphasizes the reusability of code. if want to anything from the scratch, go ahead without bothing to learn it because it won't make you happy.
      

  8.   

    and more, everything but primitive built-in data type is pointer. don't worry about access physical memory without pointer: when you create an object, you're actually creating a pointer to that memory area set aside for you in the heap, but--without *, that you might think of as your friend, sorry.
      

  9.   

    再次感谢大家的关注。我是想自己开发工具库,因为我觉得学语言应该达到这一点。别人给的东西不一定适合自己,所以要自己创建或者修改别人给的东西。举个例子,我想访问内存地址为0000的内容可以吗?我想自己实现一个屏幕输出函数,而不用java给的函数,可以吗?
      

  10.   

    java在硬件的支持方面不是很强,至于你说的访问内存地址我看暂时不行,毕竟这不是Java的强项,有时候不要太去强求,沾牛角尖。你完全可以用JNI去调用c/c++或汇编的函数
      

  11.   

    it's totally for different use and that's why you need to learn both Java and C/C++ !!!!!!!!And absolutely YES to your question. 
    You CAN write your own awt tools. But you will surely give up.first, your tools are mostly not as perfect as the original ones.s
    second, you must consider the standard.
    third, you must spend too much time on these meaningless codes although you know clearly how to do that.basicly all the lightweight components can be written in pure Java (swing).
    the Graphics class is very strong in doing all the painting screen solutions.