الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DDE

Featured Replies

بتاريخ:

السلام عليكم و رحمة الله و بركاته
I have a java application that i want to invoke a .exe file from it and pass some arrgument and return the result of that .exe file into my .java file.
my colleauge says that this issue called Dynamic Data Exchange,
so please if you know how to open an .exe file from my .java file I'll appreciate his concern.

regards,
AA

بتاريخ:

FileOutputStream fos = new FileOutputStream(args[0]);
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("java Hello 'Ahmed'");
StreamGobbler outputGobbler = new 
StreamGobbler(proc.getInputStream(), "OUTPUT", fos);

بتاريخ:
  • كاتب الموضوع

السلام عليكم و رحمة الله و بركاته
أخي الكريم أحمد شكرا على أهتمامك ولكن لم أفهم قصدك
I've puttin the code in my program but i don't know what's the use of it du the compiler complaining for the "StreamGobbler" type.
my question is:
I have a java program that I want to send an parameters to a wgetacc.exe program that is in "C:\DDE_CLNT" dirctory.

thanks for your reply.
regards,
Ahmed Abdulla

بتاريخ:

نفس الشي انته بتغير فقط في

Process proc = rt.exec("wgetacc.exe param1");



هنا بتلاقي مثال واضح لكيفية استخدام الكلاس StreamGobbler لياخذ الoutput من البرنامج الخارجي .
http://www.javaworld.com/javaworld/jw-12-2...1229-traps.html

بتاريخ:
  • كاتب الموضوع

السلام عليكم ،

حاولت و تمكنت من تشغيلها و الحمد لله و شكرا لك.
بس حصلي موضوع غريب؟؟
شغلتها و بعدين بعد فترة من المحاولات الناجحة وقف البرنامج malfunctioning فمأدري ليش؟
أتضايقة و قلت أن الجافا ماتصلح؟
واحد قالي أن الجافا مع الكونسل ماعندها Synchronize ؟
المهم شكرا على الموقع و الرد المفيد و
أكيد بفتح الموقع و أشوف الكود و أجربه.

سلام

بتاريخ:

في نفس الصفحة .. حل لمشكلتك .

بتاريخ:
  • كاتب الموضوع

سلام عليكم و الرحمة ،

مشكور و ما تقصر
حليت المشكلة.

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.